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/res | |
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/res')
-rw-r--r-- | InCallUI/res/layout/primary_call_info.xml | 8 | ||||
-rw-r--r-- | InCallUI/res/values/colors.xml | 5 | ||||
-rw-r--r-- | InCallUI/res/values/strings.xml | 4 |
3 files changed, 17 insertions, 0 deletions
diff --git a/InCallUI/res/layout/primary_call_info.xml b/InCallUI/res/layout/primary_call_info.xml index 3eb363026..56291bcc4 100644 --- a/InCallUI/res/layout/primary_call_info.xml +++ b/InCallUI/res/layout/primary_call_info.xml @@ -163,6 +163,14 @@ android:scaleType="fitCenter" android:visibility="gone" /> + <ImageView android:id="@+id/spamIcon" + android:src="@drawable/blocked_contact" + android:layout_width="24dp" + android:layout_height="match_parent" + android:layout_marginEnd="8dp" + android:scaleType="fitCenter" + android:visibility="gone" /> + <!-- Label (like "Mobile" or "Work", if present) and phone number, side by side --> <LinearLayout android:id="@+id/labelAndNumber" android:layout_width="wrap_content" diff --git a/InCallUI/res/values/colors.xml b/InCallUI/res/values/colors.xml index 99cf7b023..71c7f0166 100644 --- a/InCallUI/res/values/colors.xml +++ b/InCallUI/res/values/colors.xml @@ -98,6 +98,7 @@ <item>#7B1FA2</item> <item>#C2185B</item> <item>#C53929</item> + <item>#A52714</item> </array> <!-- Darker versions of background_colors, two shades darker. These colors are used for the @@ -109,8 +110,12 @@ <item>#6A1B9A</item> <item>#AD1457</item> <item>#B93221</item> + <item>#841F10</item> </array> + <!-- Background color for spam. This color must match one of background_colors above. --> + <color name="incall_call_spam_background_color">#A52714</color> + <!-- Ripple color used over light backgrounds. --> <color name="ripple_light">#40000000</color> diff --git a/InCallUI/res/values/strings.xml b/InCallUI/res/values/strings.xml index 57a1b5389..9534c0e42 100644 --- a/InCallUI/res/values/strings.xml +++ b/InCallUI/res/values/strings.xml @@ -169,6 +169,8 @@ <string name="notification_incoming_work_call_wifi">Incoming Wi-Fi work call</string> <!-- The "label" of the in-call Notification for an incoming ringing video call. --> <string name="notification_incoming_video_call">Incoming video call</string> + <!-- The "label" of the in-call Notification for an incoming ringing spam call. --> + <string name="notification_incoming_spam_call">Incoming suspected spam call</string> <!-- The "label" of the in-call Notification for upgrading an existing call to a video call. --> <string name="notification_requesting_video_call">Incoming video request</string> <!-- Label for the "Voicemail" notification item, when expanded. --> @@ -523,4 +525,6 @@ <string name="open_now">Open now</string> <!-- Displayed when a place is closed. --> <string name="closed_now">Closed now</string> + <!-- Label for spam call in primary info. [CHAR LIMIT=20] --> + <string name="label_spam_caller">Suspected spam caller</string> </resources> |