Bug 898501: LOADER_ID OCD in LastTabsPage. [r=lucasr]
authorSriram Ramasubramanian <sriram@mozilla.com>
Fri, 26 Jul 2013 15:48:18 -0700
changeset 151466 1fc9bcc1d4ab5487ef25cd373f0c46a8496c6741
parent 151465 a9f2a85bf1ebc1fb86bd575150cf158a10c0566a
child 151467 9b7ae4a52863ad0fec89b479fdbdbf40664ae546
push idunknown
push userunknown
push dateunknown
reviewerslucasr
bugs898501
milestone25.0a1
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;
         }