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/filterednumber/FilteredNumbersUtil.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/filterednumber/FilteredNumbersUtil.java')
-rw-r--r-- | src/com/android/dialer/filterednumber/FilteredNumbersUtil.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/dialer/filterednumber/FilteredNumbersUtil.java b/src/com/android/dialer/filterednumber/FilteredNumbersUtil.java index 67e7ee36b..a9bb98321 100644 --- a/src/com/android/dialer/filterednumber/FilteredNumbersUtil.java +++ b/src/com/android/dialer/filterednumber/FilteredNumbersUtil.java @@ -303,7 +303,7 @@ public class FilteredNumbersUtil { // If the user has blocked numbers, notify that call blocking is temporarily disabled. FilteredNumberAsyncQueryHandler queryHandler = new FilteredNumberAsyncQueryHandler(context.getContentResolver()); - queryHandler.hasBlockedNumbersAsync(new OnHasBlockedNumbersListener() { + queryHandler.hasBlockedNumbers(new OnHasBlockedNumbersListener() { @Override public void onHasBlockedNumbers(boolean hasBlockedNumbers) { if (context == null || !hasBlockedNumbers) { |