зеркало из https://github.com/mozilla/gecko-dev.git
Bug 926574: Use a new constructor for CursorAdapter. [r=mfinkle] [r=lucasr]
This commit is contained in:
Родитель
fb5da41e40
Коммит
e9af7cbb69
|
@ -246,7 +246,7 @@ public class LastTabsPage extends HomeFragment {
|
|||
|
||||
private static class LastTabsAdapter extends CursorAdapter {
|
||||
public LastTabsAdapter(Context context) {
|
||||
super(context, null);
|
||||
super(context, null, 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -25,7 +25,7 @@ abstract class MultiTypeCursorAdapter extends CursorAdapter {
|
|||
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");
|
||||
|
|
|
@ -178,7 +178,7 @@ class PinSiteDialog extends DialogFragment {
|
|||
private LayoutInflater mInflater;
|
||||
|
||||
public SearchAdapter(Context context) {
|
||||
super(context, null);
|
||||
super(context, null, 0);
|
||||
mInflater = LayoutInflater.from(context);
|
||||
}
|
||||
|
||||
|
|
|
@ -198,7 +198,7 @@ public class ReadingListPage extends HomeFragment {
|
|||
*/
|
||||
private class ReadingListAdapter extends CursorAdapter {
|
||||
public ReadingListAdapter(Context context, Cursor cursor) {
|
||||
super(context, cursor);
|
||||
super(context, cursor, 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -485,7 +485,7 @@ public class TopSitesPage extends HomeFragment {
|
|||
|
||||
private class VisitedAdapter extends CursorAdapter {
|
||||
public VisitedAdapter(Context context, Cursor cursor) {
|
||||
super(context, cursor);
|
||||
super(context, cursor, 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -518,7 +518,7 @@ public class TopSitesPage extends HomeFragment {
|
|||
private Map<String, Bitmap> mThumbnails;
|
||||
|
||||
public TopSitesGridAdapter(Context context, Cursor cursor) {
|
||||
super(context, cursor);
|
||||
super(context, cursor, 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Загрузка…
Ссылка в новой задаче