diff options
author | Brandon Maxwell <maxwelb@google.com> | 2016-03-22 17:02:25 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-03-22 17:02:25 +0000 |
commit | 8e3e51da8bdee28f1e0ef6867c8ec5482c2e15cb (patch) | |
tree | 4c646e66b2e9ec6812b0abd32cea30ce681422cc /src | |
parent | 664300c657fbfec010c3d2e948a387705ac69f64 (diff) | |
parent | 9877f59d3c4af34bedbbd27e45d00efa0ccb0b6a (diff) |
Updating logic for isBlockedNumber am: fd75e4c
am: 9877f59
* commit '9877f59d3c4af34bedbbd27e45d00efa0ccb0b6a':
Updating logic for isBlockedNumber
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/database/FilteredNumberAsyncQueryHandler.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/android/dialer/database/FilteredNumberAsyncQueryHandler.java b/src/com/android/dialer/database/FilteredNumberAsyncQueryHandler.java index 7af1a1339..52ef49ac0 100644 --- a/src/com/android/dialer/database/FilteredNumberAsyncQueryHandler.java +++ b/src/com/android/dialer/database/FilteredNumberAsyncQueryHandler.java @@ -158,7 +158,13 @@ public class FilteredNumberAsyncQueryHandler extends AsyncQueryHandler { new Listener() { @Override protected void onQueryComplete(int token, Object cookie, Cursor cursor) { - if (cursor == null || cursor.getCount() != 1) { + /* + * In the frameworking blocking, numbers can be blocked in both e164 format + * and not, resulting in multiple rows being returned for this query. For + * example, both '16502530000' and '6502530000' can exist at the same time + * and will be returned by this query. + */ + if (cursor == null || cursor.getCount() == 0) { listener.onCheckComplete(null); return; } |