summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRavindra <c_rthat@codeaurora.org>2014-01-21 16:03:07 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2014-02-07 02:53:27 -0800
commit8679ea4a8bdde9a956d0bfcf0f08064f4c868c02 (patch)
tree0112b0e5746729516147cb7306daa0d977514fa4 /src
parent0ee8c61e84e0ac5a6eb91d25a76e63a7f8b5abf7 (diff)
downloadpackages_apps_InCallUI-8679ea4a8bdde9a956d0bfcf0f08064f4c868c02.tar.gz
packages_apps_InCallUI-8679ea4a8bdde9a956d0bfcf0f08064f4c868c02.tar.bz2
packages_apps_InCallUI-8679ea4a8bdde9a956d0bfcf0f08064f4c868c02.zip
Voice Privacy Icon Support for CDMA
Voice privacy icons are added to InCallUI app. When VP is enabled corresponding icon is displayed on the UI. Change-Id: Iadf3710f74987eac785f7816abc684d397a691b8 CRs-Fixed: 599389
Diffstat (limited to 'src')
-rw-r--r--src/com/android/incallui/StatusBarNotifier.java16
1 files changed, 14 insertions, 2 deletions
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;
}
/**