diff options
Diffstat (limited to 'java/com/android/incallui/videotech/ims/ImsVideoCallCallback.java')
-rw-r--r-- | java/com/android/incallui/videotech/ims/ImsVideoCallCallback.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/java/com/android/incallui/videotech/ims/ImsVideoCallCallback.java b/java/com/android/incallui/videotech/ims/ImsVideoCallCallback.java index 49170b8dc..954dfcd8b 100644 --- a/java/com/android/incallui/videotech/ims/ImsVideoCallCallback.java +++ b/java/com/android/incallui/videotech/ims/ImsVideoCallCallback.java @@ -16,6 +16,7 @@ package com.android.incallui.videotech.ims; +import android.content.Context; import android.os.Handler; import android.telecom.Call; import android.telecom.Connection; @@ -37,17 +38,20 @@ public class ImsVideoCallCallback extends VideoCall.Callback { private final Call call; private final ImsVideoTech videoTech; private final VideoTechListener listener; + private final Context context; private int requestedVideoState = VideoProfile.STATE_AUDIO_ONLY; ImsVideoCallCallback( final LoggingBindings logger, final Call call, ImsVideoTech videoTech, - VideoTechListener listener) { + VideoTechListener listener, + Context context) { this.logger = logger; this.call = call; this.videoTech = videoTech; this.listener = listener; + this.context = context; } @Override @@ -74,7 +78,7 @@ public class ImsVideoCallCallback extends VideoCall.Callback { } else { LogUtil.i( "ImsVideoTech.onSessionModifyRequestReceived", "call updated to %d", newVideoState); - videoTech.acceptVideoRequest(); + videoTech.acceptVideoRequest(context); } } } |