From d40e05b9e0d8331a01af64e37730d177b9b948d5 Mon Sep 17 00:00:00 2001 From: Sailesh Nepal Date: Fri, 26 May 2017 10:50:06 -0700 Subject: Set camera to null when disabling IMS video transmission From Tyler's investigation: In the past (Marshmallow days) we used to call setCamera(null) as well as sending the downgrade request. Stopping the video transmission is one thing but I think the modem implementation depends on the camera being nulled to clean up its resources. (This CL is a manual cherry pick of cl/157154988 from google3 to gerrit.) Bug: 38395481 Change-Id: I7f71c1ffb7194165b8968cd4a033ffea1af443ed --- java/com/android/incallui/videotech/ims/ImsVideoTech.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'java/com/android/incallui/videotech') diff --git a/java/com/android/incallui/videotech/ims/ImsVideoTech.java b/java/com/android/incallui/videotech/ims/ImsVideoTech.java index 363a19397..01e4bb84c 100644 --- a/java/com/android/incallui/videotech/ims/ImsVideoTech.java +++ b/java/com/android/incallui/videotech/ims/ImsVideoTech.java @@ -183,6 +183,8 @@ public class ImsVideoTech implements VideoTech { public void stopTransmission() { LogUtil.enterBlock("ImsVideoTech.stopTransmission"); + setCamera(null); + int unpausedVideoState = getUnpausedVideoState(call.getDetails().getVideoState()); call.getVideoCall() .sendSessionModifyRequest( -- cgit v1.2.3