Indicate the call is work call in notification
am: dd8122a083
* commit 'dd8122a0831a44ef74e6b84ba97237edfa48815b':
Indicate the call is work call in notification
diff --git a/InCallUI/src/com/android/incallui/StatusBarNotifier.java b/InCallUI/src/com/android/incallui/StatusBarNotifier.java
index fdf185b..6317fe8 100644
--- a/InCallUI/src/com/android/incallui/StatusBarNotifier.java
+++ b/InCallUI/src/com/android/incallui/StatusBarNotifier.java
@@ -47,6 +47,8 @@
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 @@
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);
}