Bug 926574: Use a new constructor for CursorAdapter. [r=mfinkle] [r=lucasr]
authorSriram Ramasubramanian <sriram@mozilla.com>
Mon, 14 Oct 2013 13:34:08 -0700
changeset 165755 7a6e64677565d19ee58848f8f6613e6de45a2eba
parent 165754 1b53a6a4d2dedc64cdeb899f8b7f4bb3d08b9751
child 165756 effaf67d0336b1587044fa3de4bdddc74ec26ac3
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle, lucasr
bugs926574
milestone27.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 926574: Use a new constructor for CursorAdapter. [r=mfinkle] [r=lucasr]
mobile/android/base/home/LastTabsPage.java
mobile/android/base/home/MultiTypeCursorAdapter.java
mobile/android/base/home/PinSiteDialog.java
mobile/android/base/home/ReadingListPage.java
mobile/android/base/home/TopSitesPage.java
--- a/mobile/android/base/home/LastTabsPage.java
+++ b/mobile/android/base/home/LastTabsPage.java
@@ -241,17 +241,17 @@ public class LastTabsPage extends HomeFr
             }.parse(jsonString);
 
             return c;
         }
     }
 
     private static class LastTabsAdapter extends CursorAdapter {
         public LastTabsAdapter(Context context) {
-            super(context, null);
+            super(context, null, 0);
         }
 
         @Override
         public void bindView(View view, Context context, Cursor cursor) {
             ((TwoLinePageRow) view).updateFromCursor(cursor);
         }
 
         @Override
--- a/mobile/android/base/home/MultiTypeCursorAdapter.java
+++ b/mobile/android/base/home/MultiTypeCursorAdapter.java
@@ -20,17 +20,17 @@ import android.view.ViewGroup;
 abstract class MultiTypeCursorAdapter extends CursorAdapter {
     private final int[] mViewTypes;
     private final int[] mLayouts;
 
     // Bind the view for the given position.
     abstract public void bindView(View view, Context context, int position);
 
     public MultiTypeCursorAdapter(Context context, Cursor cursor, int[] viewTypes, int[] layouts) {
-        super(context, cursor);
+        super(context, cursor, 0);
 
         if (viewTypes.length != layouts.length) {
             throw new IllegalStateException("The view types and the layouts should be of same size");
         }
 
         mViewTypes = viewTypes;
         mLayouts = layouts;
     }
--- a/mobile/android/base/home/PinSiteDialog.java
+++ b/mobile/android/base/home/PinSiteDialog.java
@@ -173,17 +173,17 @@ class PinSiteDialog extends DialogFragme
     public void setOnSiteSelectedListener(OnSiteSelectedListener listener) {
         mOnSiteSelectedListener = listener;
     }
 
     private static class SearchAdapter extends CursorAdapter {
         private LayoutInflater mInflater;
 
         public SearchAdapter(Context context) {
-            super(context, null);
+            super(context, null, 0);
             mInflater = LayoutInflater.from(context);
         }
 
         @Override
         public void bindView(View view, Context context, Cursor cursor) {
             TwoLinePageRow row = (TwoLinePageRow) view;
             row.setShowIcons(false);
             row.updateFromCursor(cursor);
--- a/mobile/android/base/home/ReadingListPage.java
+++ b/mobile/android/base/home/ReadingListPage.java
@@ -193,17 +193,17 @@ public class ReadingListPage extends Hom
         }
     }
 
     /**
      * Cursor adapter for the list of reading list items.
      */
     private class ReadingListAdapter extends CursorAdapter {
         public ReadingListAdapter(Context context, Cursor cursor) {
-            super(context, cursor);
+            super(context, cursor, 0);
         }
 
         @Override
         public void bindView(View view, Context context, Cursor cursor) {
             final TwoLinePageRow row = (TwoLinePageRow) view;
             row.updateFromCursor(cursor);
         }
 
--- a/mobile/android/base/home/TopSitesPage.java
+++ b/mobile/android/base/home/TopSitesPage.java
@@ -480,17 +480,17 @@ public class TopSitesPage extends HomeFr
         public Cursor loadCursor() {
             Log.d(LOGTAG, "TopSitesLoader.loadCursor()");
             return BrowserDB.getTopSites(getContext().getContentResolver(), mMaxGridEntries, SEARCH_LIMIT);
         }
     }
 
     private class VisitedAdapter extends CursorAdapter {
         public VisitedAdapter(Context context, Cursor cursor) {
-            super(context, cursor);
+            super(context, cursor, 0);
         }
 
         @Override
         public int getCount() {
             return Math.max(0, super.getCount() - mMaxGridEntries);
         }
 
         @Override
@@ -513,17 +513,17 @@ public class TopSitesPage extends HomeFr
         }
     }
 
     public class TopSitesGridAdapter extends CursorAdapter {
         // Cache to store the thumbnails.
         private Map<String, Bitmap> mThumbnails;
 
         public TopSitesGridAdapter(Context context, Cursor cursor) {
-            super(context, cursor);
+            super(context, cursor, 0);
         }
 
         @Override
         public int getCount() {
             return Math.min(mMaxGridEntries, super.getCount());
         }
 
         @Override