summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-10-15 17:48:32 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-10-15 17:48:32 +0000
commite7d612f4f55f7de89ffcde58dbfa3082a2b913c4 (patch)
treeb6ad9da3fc91878bf22144111d85b5ad26097a02
parent75c88fae6e77a2648c705c415ccfc36b8f31dde2 (diff)
parent6988a32f6ee311480dd3657a1d7bf9981144fa5a (diff)
am 6988a32f: Merge "Reset view state to unmarked when binding." into ub-contactsdialer-a-dev
* commit '6988a32f6ee311480dd3657a1d7bf9981144fa5a': Reset view state to unmarked when binding.
-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);
}
}