diff options
Diffstat (limited to 'java/com/android/incallui/videotech/ims/ImsVideoCallCallback.java')
-rw-r--r-- | java/com/android/incallui/videotech/ims/ImsVideoCallCallback.java | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/java/com/android/incallui/videotech/ims/ImsVideoCallCallback.java b/java/com/android/incallui/videotech/ims/ImsVideoCallCallback.java index b83929304..49170b8dc 100644 --- a/java/com/android/incallui/videotech/ims/ImsVideoCallCallback.java +++ b/java/com/android/incallui/videotech/ims/ImsVideoCallCallback.java @@ -66,10 +66,16 @@ public class ImsVideoCallCallback extends VideoCall.Callback { "ImsVideoTech.onSessionModifyRequestReceived", "call downgraded to %d", newVideoState); } else if (previousVideoState != newVideoState) { requestedVideoState = newVideoState; - videoTech.setSessionModificationState( - SessionModificationState.RECEIVED_UPGRADE_TO_VIDEO_REQUEST); - listener.onVideoUpgradeRequestReceived(); - logger.logImpression(DialerImpression.Type.IMS_VIDEO_REQUEST_RECEIVED); + if (!wasVideoCall) { + videoTech.setSessionModificationState( + SessionModificationState.RECEIVED_UPGRADE_TO_VIDEO_REQUEST); + listener.onVideoUpgradeRequestReceived(); + logger.logImpression(DialerImpression.Type.IMS_VIDEO_REQUEST_RECEIVED); + } else { + LogUtil.i( + "ImsVideoTech.onSessionModifyRequestReceived", "call updated to %d", newVideoState); + videoTech.acceptVideoRequest(); + } } } |