summaryrefslogtreecommitdiff
path: root/InCallUI/src
diff options
context:
space:
mode:
authorTony Mak <tonymak@google.com>2016-01-13 22:44:17 +0000
committerTony Mak <tonymak@google.com>2016-01-13 22:44:33 +0000
commit6a8cd0381df990473c8362e6478f4f89e0c9c9d7 (patch)
tree68b6ce1888bf810119b660bdb6e8b1e6411adf90 /InCallUI/src
parent7b2b43c0589ec79ba74359f7d9d6e0450fc322ab (diff)
Indicate the call is work call in notification
Bug: 26022174 Change-Id: I5f28e3fa47c91787fbc5c82b68316a8baa11d286
Diffstat (limited to 'InCallUI/src')
-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);
}