diff options
Diffstat (limited to 'InCallUI/src/com/android/incallui/InCallVideoCallListener.java')
-rw-r--r-- | InCallUI/src/com/android/incallui/InCallVideoCallListener.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallVideoCallListener.java b/InCallUI/src/com/android/incallui/InCallVideoCallListener.java index 3d975dbb7..4ba2bd993 100644 --- a/InCallUI/src/com/android/incallui/InCallVideoCallListener.java +++ b/InCallUI/src/com/android/incallui/InCallVideoCallListener.java @@ -86,9 +86,14 @@ public class InCallVideoCallListener extends VideoCall.Listener { VideoProfile.VideoState.isBidirectional(responseProfile.getVideoState()); if (modifySucceeded && isVideoCall) { + // Local Upgrade success InCallVideoCallListenerNotifier.getInstance().upgradeToVideoSuccess(mCall); } else if (!modifySucceeded || status != Connection.VideoProvider.SESSION_MODIFY_REQUEST_SUCCESS) { + // Remote didn't accept invitation in bidirectional state or failure InCallVideoCallListenerNotifier.getInstance().upgradeToVideoFail(mCall); + } else if (modifySucceeded && !isVideoCall) { + // Local Downgrade success (should always be successful) + InCallVideoCallListenerNotifier.getInstance().downgradeToAudio(mCall); } } |