summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorTony Mak <tonymak@google.com>2016-01-13 23:09:30 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-01-13 23:09:30 +0000
commit2cdd5ac23ba4b057fd88edf2c686dd08d010a525 (patch)
treed187fca3750b10afe1225a8b8a231aede84057e2 /InCallUI
parentb8308bddefeb8eba5f83f36b00d4b66b2eb99e7d (diff)
parent6a8cd0381df990473c8362e6478f4f89e0c9c9d7 (diff)
Indicate the call is work call in notification
am: dd8122a083 * commit 'dd8122a0831a44ef74e6b84ba97237edfa48815b': Indicate the call is work call in notification
Diffstat (limited to 'InCallUI')
-rw-r--r--InCallUI/src/com/android/incallui/StatusBarNotifier.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/InCallUI/src/com/android/incallui/StatusBarNotifier.java b/InCallUI/src/com/android/incallui/StatusBarNotifier.java
index fdf185ba5..6317fe8bd 100644
--- a/InCallUI/src/com/android/incallui/StatusBarNotifier.java
+++ b/InCallUI/src/com/android/incallui/StatusBarNotifier.java
@@ -47,6 +47,8 @@ import com.google.common.base.Preconditions;
import java.util.Objects;
+import static com.android.contacts.common.compat.CallSdkCompat.Details.PROPERTY_WORK_CALL;
+
/**
* This class adds Notifications to the status bar for the in-call experience.
*/
@@ -472,7 +474,9 @@ public class StatusBarNotifier implements InCallPresenter.InCallStateListener,
resId = R.string.notification_requesting_video_call;
}
- if (userType == ContactsUtils.USER_TYPE_WORK) {
+ // Is the call placed through work connection service.
+ boolean isWorkCall = call.hasProperty(PROPERTY_WORK_CALL);
+ if(userType == ContactsUtils.USER_TYPE_WORK || isWorkCall) {
resId = getWorkStringFromPersonalString(resId);
}