summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-10-15 17:44:45 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-10-15 17:44:45 +0000
commit6988a32f6ee311480dd3657a1d7bf9981144fa5a (patch)
tree8530d57dc849e7693ff226d97ddc7a65bfe03db6
parent4999105796f54c3eb77b5e3daad5135d8d42536a (diff)
parentdb1b6073d05ccefa84d0f3b3e8b4c74ba03ea878 (diff)
Merge "Reset view state to unmarked when binding." into ub-contactsdialer-a-dev
-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);
}
}