diff options
author | Eric Erfanian <erfanian@google.com> | 2017-05-05 20:51:46 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-05-05 20:51:46 +0000 |
commit | 48e3853d12833150d7626d7179caf4cfb82022cc (patch) | |
tree | 7759f57348ab1864a745c831a64be761148b60d7 /java/com/android/dialer/app/dialpad/SmartDialCursorLoader.java | |
parent | 43b3152d075138b11e1fe297682b3bbc775e5641 (diff) | |
parent | 92a3240cb0ad13413abd7507313ddd04aee19c9a (diff) |
Update Dialer to v10 RC17 am: 738bb09ade
am: 92a3240cb0
Change-Id: I25162b67d44217daed4fe11c3eb65d9ceb235eb3
Diffstat (limited to 'java/com/android/dialer/app/dialpad/SmartDialCursorLoader.java')
-rw-r--r-- | java/com/android/dialer/app/dialpad/SmartDialCursorLoader.java | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/java/com/android/dialer/app/dialpad/SmartDialCursorLoader.java b/java/com/android/dialer/app/dialpad/SmartDialCursorLoader.java index 2e3b0cf92..175360c2d 100644 --- a/java/com/android/dialer/app/dialpad/SmartDialCursorLoader.java +++ b/java/com/android/dialer/app/dialpad/SmartDialCursorLoader.java @@ -17,10 +17,7 @@ package com.android.dialer.app.dialpad; import android.content.AsyncTaskLoader; -import android.content.BroadcastReceiver; import android.content.Context; -import android.content.Intent; -import android.content.IntentFilter; import android.database.Cursor; import android.database.MatrixCursor; import com.android.contacts.common.list.PhoneNumberListAdapter.PhoneQuery; @@ -46,8 +43,6 @@ public class SmartDialCursorLoader extends AsyncTaskLoader<Cursor> { private String mQuery; private SmartDialNameMatcher mNameMatcher; - private BroadcastReceiver mSmartDialUpdatedReceiver; - private boolean mShowEmptyListForNullQuery = true; public SmartDialCursorLoader(Context context) { @@ -124,19 +119,6 @@ public class SmartDialCursorLoader extends AsyncTaskLoader<Cursor> { Cursor oldCursor = mCursor; mCursor = cursor; - if (mSmartDialUpdatedReceiver == null) { - mSmartDialUpdatedReceiver = - new BroadcastReceiver() { - @Override - public void onReceive(Context context, Intent intent) { - onContentChanged(); - } - }; - mContext.registerReceiver( - mSmartDialUpdatedReceiver, - new IntentFilter(DialerDatabaseHelper.ACTION_SMART_DIAL_UPDATED)); - } - if (isStarted()) { /** If the Loader is in a started state, deliver the results to the client. */ super.deliverResult(cursor); @@ -171,11 +153,6 @@ public class SmartDialCursorLoader extends AsyncTaskLoader<Cursor> { /** Ensure the loader has been stopped. */ onStopLoading(); - if (mSmartDialUpdatedReceiver != null) { - mContext.unregisterReceiver(mSmartDialUpdatedReceiver); - mSmartDialUpdatedReceiver = null; - } - /** Release all previously saved query results. */ if (mCursor != null) { releaseResources(mCursor); @@ -187,11 +164,6 @@ public class SmartDialCursorLoader extends AsyncTaskLoader<Cursor> { public void onCanceled(Cursor cursor) { super.onCanceled(cursor); - if (mSmartDialUpdatedReceiver != null) { - mContext.unregisterReceiver(mSmartDialUpdatedReceiver); - mSmartDialUpdatedReceiver = null; - } - /** The load has been canceled, so we should release the resources associated with 'data'. */ releaseResources(cursor); } |