summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--res/drawable-hdpi/stat_sys_vp_phone_call.pngbin0 -> 1593 bytes
-rw-r--r--res/drawable-hdpi/stat_sys_vp_phone_call_on_hold.pngbin0 -> 1516 bytes
-rw-r--r--src/com/android/incallui/StatusBarNotifier.java16
3 files changed, 14 insertions, 2 deletions
diff --git a/res/drawable-hdpi/stat_sys_vp_phone_call.png b/res/drawable-hdpi/stat_sys_vp_phone_call.png
new file mode 100644
index 00000000..69b98171
--- /dev/null
+++ b/res/drawable-hdpi/stat_sys_vp_phone_call.png
Binary files differ
diff --git a/res/drawable-hdpi/stat_sys_vp_phone_call_on_hold.png b/res/drawable-hdpi/stat_sys_vp_phone_call_on_hold.png
new file mode 100644
index 00000000..f4074c10
--- /dev/null
+++ b/res/drawable-hdpi/stat_sys_vp_phone_call_on_hold.png
Binary files differ
diff --git a/src/com/android/incallui/StatusBarNotifier.java b/src/com/android/incallui/StatusBarNotifier.java
index 98442671..19595b82 100644
--- a/src/com/android/incallui/StatusBarNotifier.java
+++ b/src/com/android/incallui/StatusBarNotifier.java
@@ -451,10 +451,22 @@ public class StatusBarNotifier implements InCallPresenter.InCallStateListener {
// different calls. So if both lines are in use, display info
// from the foreground call. And if there's a ringing call,
// display that regardless of the state of the other calls.
+ int resId;
+ int voicePrivacy = call.getCapabilities() & Call.Capabilities.VOICE_PRIVACY;
if (call.getState() == Call.State.ONHOLD) {
- return R.drawable.stat_sys_phone_call_on_hold;
+ if (voicePrivacy != 0) {
+ resId = R.drawable.stat_sys_vp_phone_call_on_hold;
+ } else {
+ resId = R.drawable.stat_sys_phone_call_on_hold;
+ }
+ } else {
+ if (voicePrivacy != 0) {
+ resId = R.drawable.stat_sys_vp_phone_call;
+ } else {
+ resId = R.drawable.stat_sys_phone_call;
+ }
}
- return R.drawable.stat_sys_phone_call;
+ return resId;
}
/**