Bug 898501: LOADER_ID OCD in LastTabsPage. [r=lucasr]
authorSriram Ramasubramanian <sriram@mozilla.com>
Fri, 26 Jul 2013 15:48:18 -0700
changeset 143482 1fc9bcc1d4ab5487ef25cd373f0c46a8496c6741
parent 143481 a9f2a85bf1ebc1fb86bd575150cf158a10c0566a
child 143483 9b7ae4a52863ad0fec89b479fdbdbf40664ae546
push id25130
push userlrocha@mozilla.com
push dateWed, 21 Aug 2013 09:41:27 +0000
treeherdermozilla-central@b2486721572e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslucasr
bugs898501
milestone25.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 898501: LOADER_ID OCD in LastTabsPage. [r=lucasr]
mobile/android/base/home/LastTabsPage.java
--- a/mobile/android/base/home/LastTabsPage.java
+++ b/mobile/android/base/home/LastTabsPage.java
@@ -32,17 +32,17 @@ import android.widget.TextView;
 /**
  * Fragment that displays tabs from last session in a ListView.
  */
 public class LastTabsPage extends HomeFragment {
     // Logging tag name
     private static final String LOGTAG = "GeckoLastTabsPage";
 
     // Cursor loader ID for the session parser
-    private static final int LAST_TABS_LOADER_ID = 0;
+    private static final int LOADER_ID_LAST_TABS = 0;
 
     // Adapter for the list of search results
     private LastTabsAdapter mAdapter;
 
     // The view shown by the fragment.
     private ListView mList;
 
     // Callbacks used for the search and favicon cursor loaders
@@ -130,17 +130,17 @@ public class LastTabsPage extends HomeFr
 
         // Create callbacks before the initial loader is started
         mCursorLoaderCallbacks = new CursorLoaderCallbacks();
         loadIfVisible();
     }
 
     @Override
     protected void load() {
-        getLoaderManager().initLoader(LAST_TABS_LOADER_ID, null, mCursorLoaderCallbacks);
+        getLoaderManager().initLoader(LOADER_ID_LAST_TABS, null, mCursorLoaderCallbacks);
     }
 
     private void openAllTabs() {
         final Cursor c = mAdapter.getCursor();
         if (c == null || !c.moveToFirst()) {
             return;
         }