diff options
author | Andrew Lee <anwlee@google.com> | 2015-10-28 16:22:39 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2015-10-30 16:57:25 -0700 |
commit | 4805ae099d7540ee42b1428bf5fb6ca75a4855ed (patch) | |
tree | 88f1dd0dc8c3ed6ab80e35dd4f550da2869deac0 /src/com/android/dialer/calllog/CallLogListItemViewHolder.java | |
parent | 0af3d293e14fe665733076877d7bd7ad6851a091 (diff) |
Rename check method to isBlockedNumber.
+ Clearer name about functionality, and async nature.
+ Change it to return "false" if it fails and is trying to block an
invalid number, rather than returning "true". This matches a more
standard success/fail return paradigm.
+ Update logic for showing "invalid" message based on return value.
+ Simplify parameter set which it takes in; always take nubmer and
countryIso, because they can be used to calculate the normalized #.
Bug: 25343277
Change-Id: If6fb28a6395e207047f4b27bfac37f5c70a9bac3
Diffstat (limited to 'src/com/android/dialer/calllog/CallLogListItemViewHolder.java')
-rw-r--r-- | src/com/android/dialer/calllog/CallLogListItemViewHolder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/dialer/calllog/CallLogListItemViewHolder.java b/src/com/android/dialer/calllog/CallLogListItemViewHolder.java index 28e406fd5..afe82087a 100644 --- a/src/com/android/dialer/calllog/CallLogListItemViewHolder.java +++ b/src/com/android/dialer/calllog/CallLogListItemViewHolder.java @@ -304,7 +304,7 @@ public final class CallLogListItemViewHolder extends RecyclerView.ViewHolder } if (FilteredNumbersUtil.canBlockNumber(mContext, number, countryIso)) { - mFilteredNumberAsyncQueryHandler.startBlockedQuery( + mFilteredNumberAsyncQueryHandler.isBlockedNumber( new FilteredNumberAsyncQueryHandler.OnCheckBlockedListener() { @Override public void onCheckComplete(Integer id) { @@ -319,7 +319,7 @@ public final class CallLogListItemViewHolder extends RecyclerView.ViewHolder blockItem.setOnMenuItemClickListener( CallLogListItemViewHolder.this); } - }, info.normalizedNumber, number, countryIso); + }, number, countryIso); } } |