diff options
author | Qi Wang <wangqi@google.com> | 2016-04-06 23:58:18 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2016-04-06 23:58:18 +0000 |
commit | f20eb6ed1844fa52964187c66e872de46456cb1c (patch) | |
tree | 52ae21de45c070459f8ba0cd6683febd1e78304e /InCallUI/src/com/android | |
parent | 4f78f85ab36dd157bb47799f383ceb90240f91f9 (diff) | |
parent | 3490941c6b38ac875c008a3014bb14de7c54f403 (diff) |
Merge "Don't show spam indicator if incoming call number is in local contacts."
Diffstat (limited to 'InCallUI/src/com/android')
-rw-r--r-- | InCallUI/src/com/android/incallui/StatusBarNotifier.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/StatusBarNotifier.java b/InCallUI/src/com/android/incallui/StatusBarNotifier.java index 21bf38970..1ed3ae7dc 100644 --- a/InCallUI/src/com/android/incallui/StatusBarNotifier.java +++ b/InCallUI/src/com/android/incallui/StatusBarNotifier.java @@ -242,6 +242,10 @@ public class StatusBarNotifier implements InCallPresenter.InCallStateListener, } final int callState = call.getState(); + // Dont' show as spam if the number is in local contact. + if (contactInfo.contactLookupResult == Call.LogState.LOOKUP_LOCAL_CONTACT) { + call.setSpam(false); + } // Check if data has changed; if nothing is different, don't issue another notification. final int iconResId = getIconToDisplay(call); |