mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 01:08:21 +00:00
Bug 1074787 - Unable to Remove bookmarks via context menu, r=rnewman
This commit is contained in:
parent
1a80978af3
commit
884b20762e
@ -82,7 +82,7 @@ public class LocalBrowserDB {
|
||||
private final HashMap<String, Long> mFolderIdMap;
|
||||
|
||||
// Use wrapped Boolean so that we can have a null state
|
||||
private Boolean mDesktopBookmarksExist;
|
||||
private volatile Boolean mDesktopBookmarksExist;
|
||||
|
||||
private final Uri mBookmarksUriWithProfile;
|
||||
private final Uri mParentsUriWithProfile;
|
||||
@ -759,12 +759,13 @@ public class LocalBrowserDB {
|
||||
null);
|
||||
|
||||
try {
|
||||
mDesktopBookmarksExist = c.getCount() > 0;
|
||||
// Don't read back out of the cache to avoid races with invalidation.
|
||||
final boolean e = c.getCount() > 0;
|
||||
mDesktopBookmarksExist = e;
|
||||
return e;
|
||||
} finally {
|
||||
c.close();
|
||||
}
|
||||
|
||||
return mDesktopBookmarksExist;
|
||||
}
|
||||
|
||||
@RobocopTarget
|
||||
|
Loading…
x
Reference in New Issue
Block a user