summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/contacts/common/list/ContactEntryListFragment.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/contacts/common/list/ContactEntryListFragment.java b/src/com/android/contacts/common/list/ContactEntryListFragment.java
index 4b01b620..f7f555a1 100644
--- a/src/com/android/contacts/common/list/ContactEntryListFragment.java
+++ b/src/com/android/contacts/common/list/ContactEntryListFragment.java
@@ -319,7 +319,7 @@ public abstract class ContactEntryListFragment<T extends ContactEntryListAdapter
ContactEntryListAdapter.LOCAL_INVISIBLE_DIRECTORY_ENABLED);
return loader;
} else {
- CursorLoader loader = createCursorLoader();
+ CursorLoader loader = createCursorLoader(mContext);
long directoryId = args != null && args.containsKey(DIRECTORY_ID_ARG_KEY)
? args.getLong(DIRECTORY_ID_ARG_KEY)
: Directory.DEFAULT;
@@ -328,8 +328,8 @@ public abstract class ContactEntryListFragment<T extends ContactEntryListAdapter
}
}
- public CursorLoader createCursorLoader() {
- return new CursorLoader(mContext, null, null, null, null, null);
+ public CursorLoader createCursorLoader(Context context) {
+ return new CursorLoader(context, null, null, null, null, null);
}
private void startLoadingDirectoryPartition(int partitionIndex) {