diff options
author | Qi Wang <wangqi@google.com> | 2016-03-24 17:02:27 -0700 |
---|---|---|
committer | Qi Wang <wangqi@google.com> | 2016-03-28 12:53:45 -0700 |
commit | bf5cb80991de5725a5c35a11016c1508eaec3cb4 (patch) | |
tree | 2bf9799048c18c2b25ac51472c1425cc1fcb2b30 /InCallUI/src/com/android/incallui/Call.java | |
parent | 5287c15f684011e1adacd1b63da87c5404a0d7f2 (diff) |
Add spam indicator for notification and incoming call of incallui.
+ Add spam icon and label in notification of incoming call.
+ Add spam icon and label in primary call info of incall screen.
+ Change background color and status bar color if primary caller is spam.
Screenshots:
https://screenshot.googleplex.com/WFob2oPdXZd
https://screenshot.googleplex.com/ddCfg91Anef
Bug: 27611253
Change-Id: I03b3754f69631f5f6b07932b1a0006407b93c6e8
Diffstat (limited to 'InCallUI/src/com/android/incallui/Call.java')
-rw-r--r-- | InCallUI/src/com/android/incallui/Call.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/Call.java b/InCallUI/src/com/android/incallui/Call.java index 54ec52829..483d53e64 100644 --- a/InCallUI/src/com/android/incallui/Call.java +++ b/InCallUI/src/com/android/incallui/Call.java @@ -389,6 +389,16 @@ public class Call { private LogState mLogState = new LogState(); + private boolean mIsSpam; + + public void setSpam(boolean isSpam) { + mIsSpam = isSpam; + } + + public boolean isSpam() { + return mIsSpam; + } + /** * Used only to create mock calls for testing */ |