diff options
author | Garik Badalyan <garikb@codeaurora.org> | 2016-04-08 15:19:10 -0700 |
---|---|---|
committer | Tyler Gunn <tgunn@google.com> | 2016-05-04 17:39:22 +0000 |
commit | b9d447c6d1088134354d5bacaa9f95bd8ab9af53 (patch) | |
tree | 6ee1cc5f7929ad7a77076718088c829dd05eba74 /InCallUI/src | |
parent | 9bb027e7dc557645b87a02981dd794f6267fa4b1 (diff) |
IMS-VT: Show upgrade to video notification.
Upgrade to video notification is not shown
when UE's screen is on and InCallUI is not
visible, e.g. pushed to backgroud by pressing
the Home button.
CL: 121482384
BUG=28093622
Change-Id: Ia141886b7a085164b3294a682f14b60b7a2a83b4
Diffstat (limited to 'InCallUI/src')
-rw-r--r-- | InCallUI/src/com/android/incallui/StatusBarNotifier.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/InCallUI/src/com/android/incallui/StatusBarNotifier.java b/InCallUI/src/com/android/incallui/StatusBarNotifier.java index 7d212aa8e..a61620317 100644 --- a/InCallUI/src/com/android/incallui/StatusBarNotifier.java +++ b/InCallUI/src/com/android/incallui/StatusBarNotifier.java @@ -247,8 +247,11 @@ public class StatusBarNotifier implements InCallPresenter.InCallStateListener, getContentString(call, contactInfo.userType); final String contentTitle = getContentTitle(contactInfo, call); + final boolean isVideoUpgradeRequest = call.getSessionModificationState() + == Call.SessionModificationState.RECEIVED_UPGRADE_TO_VIDEO_REQUEST; final int notificationType; - if (callState == Call.State.INCOMING || callState == Call.State.CALL_WAITING) { + if (callState == Call.State.INCOMING || callState == Call.State.CALL_WAITING + || isVideoUpgradeRequest) { notificationType = NOTIFICATION_INCOMING_CALL; } else { notificationType = NOTIFICATION_IN_CALL; @@ -301,8 +304,6 @@ public class StatusBarNotifier implements InCallPresenter.InCallStateListener, builder.setLargeIcon(largeIcon); builder.setColor(mContext.getResources().getColor(R.color.dialer_theme_color)); - final boolean isVideoUpgradeRequest = call.getSessionModificationState() - == Call.SessionModificationState.RECEIVED_UPGRADE_TO_VIDEO_REQUEST; if (isVideoUpgradeRequest) { builder.setUsesChronometer(false); addDismissUpgradeRequestAction(builder); |