Bug 907172 - Periodically invalidate the cached return value for desktopBookmarksExist(). r=lucasr
authorMargaret Leibovic <margaret.leibovic@gmail.com>
Wed, 21 Aug 2013 11:34:16 -0700
changeset 143675 5393a1a4e3ef921fc9b041f6f8b57f1dbafeecbc
parent 143674 26b37a40d65f5415094032f5bc28df8c5f37beeb
child 143676 613a1db679dc9c0af6165e7149a0039537644fea
child 143700 438cc1848c96618b2cd74be4b8cb2d6a622fd9f2
push id2303
push usermleibovic@mozilla.com
push dateWed, 21 Aug 2013 18:45:31 +0000
treeherderfx-team@5393a1a4e3ef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslucasr
bugs907172
milestone26.0a1
Bug 907172 - Periodically invalidate the cached return value for desktopBookmarksExist(). r=lucasr
mobile/android/base/home/BookmarksPage.java
--- a/mobile/android/base/home/BookmarksPage.java
+++ b/mobile/android/base/home/BookmarksPage.java
@@ -144,16 +144,20 @@ public class BookmarksPage extends HomeF
                 // Restart the loader with folder as the argument.
                 Bundle bundle = new Bundle();
                 bundle.putInt(BOOKMARKS_FOLDER_KEY, folderId);
                 getLoaderManager().restartLoader(LOADER_ID_BOOKMARKS_LIST, bundle, mLoaderCallbacks);
             }
         });
         mList.setAdapter(mListAdapter);
 
+        // Invalidate the cached value that keeps track of whether or
+        // not desktop bookmarks (or reading list items) exist.
+        BrowserDB.invalidateCachedState();
+
         // Create callbacks before the initial loader is started.
         mLoaderCallbacks = new CursorLoaderCallbacks(activity, getLoaderManager());
         mThumbnailsLoaderCallbacks = new ThumbnailsLoaderCallbacks();
         loadIfVisible();
     }
 
     @Override
     public void onDestroyView() {