summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-10-13 15:26:16 -0700
committerAndrew Lee <anwlee@google.com>2015-10-13 15:42:17 -0700
commitdb1b6073d05ccefa84d0f3b3e8b4c74ba03ea878 (patch)
tree27c3c1d232860d61cf156b941c6f471c4a132388
parentb01520f92d03560d6f5423875db06a515d3455a7 (diff)
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
-rw-r--r--src/com/android/dialer/list/BlockedListSearchAdapter.java8
1 files changed, 5 insertions, 3 deletions
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);
}
}