diff options
Diffstat (limited to 'java/com/android/dialer/searchfragment/nearbyplaces/NearbyPlacesCursorLoader.java')
-rw-r--r-- | java/com/android/dialer/searchfragment/nearbyplaces/NearbyPlacesCursorLoader.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/java/com/android/dialer/searchfragment/nearbyplaces/NearbyPlacesCursorLoader.java b/java/com/android/dialer/searchfragment/nearbyplaces/NearbyPlacesCursorLoader.java index 9f3193e92..6807a6e6b 100644 --- a/java/com/android/dialer/searchfragment/nearbyplaces/NearbyPlacesCursorLoader.java +++ b/java/com/android/dialer/searchfragment/nearbyplaces/NearbyPlacesCursorLoader.java @@ -18,6 +18,7 @@ package com.android.dialer.searchfragment.nearbyplaces; import android.content.Context; import android.content.CursorLoader; +import android.database.Cursor; import android.net.Uri; import android.provider.ContactsContract; import com.android.contacts.common.extensions.PhoneDirectoryExtenderAccessor; @@ -32,6 +33,11 @@ public final class NearbyPlacesCursorLoader extends CursorLoader { super(context, getContentUri(context, query), Projections.PHONE_PROJECTION, null, null, null); } + @Override + public Cursor loadInBackground() { + return NearbyPlacesCursor.newInstnace(getContext(), super.loadInBackground()); + } + private static Uri getContentUri(Context context, String query) { return PhoneDirectoryExtenderAccessor.get(context) .getContentUri() |