From db1b6073d05ccefa84d0f3b3e8b4c74ba03ea878 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 13 Oct 2015 15:26:16 -0700 Subject: Reset view state to unmarked when binding. Some numbers had been showing up marked as blocked, even though they were not blocked, because the adapter list items were not updated properly. Bug: 24910704 Change-Id: Id3aead5212f4e51d02ec5c6be6c77962546722e0 --- src/com/android/dialer/list/BlockedListSearchAdapter.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/com/android') diff --git a/src/com/android/dialer/list/BlockedListSearchAdapter.java b/src/com/android/dialer/list/BlockedListSearchAdapter.java index 8f7971fcd..aaea40bf8 100644 --- a/src/com/android/dialer/list/BlockedListSearchAdapter.java +++ b/src/com/android/dialer/list/BlockedListSearchAdapter.java @@ -68,11 +68,13 @@ public class BlockedListSearchAdapter extends RegularSearchListAdapter { @Override protected void bindView(View itemView, int partition, Cursor cursor, int position) { super.bindView(itemView, partition, cursor, position); + final ContactListItemView view = (ContactListItemView) itemView; + // Reset view state to unblocked. + setViewUnblocked(view); + final String number = getPhoneNumber(position); final String countryIso = GeoUtil.getCurrentCountryIso(mContext); - final String normalizedNumber = - FilteredNumberAsyncQueryHandler.getNormalizedNumber(number, countryIso); final FilteredNumberAsyncQueryHandler.OnCheckBlockedListener onCheckListener = new FilteredNumberAsyncQueryHandler.OnCheckBlockedListener() { @Override @@ -83,6 +85,6 @@ public class BlockedListSearchAdapter extends RegularSearchListAdapter { } }; mFilteredNumberAsyncQueryHandler.startBlockedQuery( - onCheckListener, normalizedNumber, number, countryIso); + onCheckListener, null, number, countryIso); } } -- cgit v1.2.3