diff options
author | Sailesh Nepal <sail@google.com> | 2017-05-26 10:50:06 -0700 |
---|---|---|
committer | Sailesh Nepal <sail@google.com> | 2017-05-26 10:50:06 -0700 |
commit | d40e05b9e0d8331a01af64e37730d177b9b948d5 (patch) | |
tree | 8b3be2ccca476c994e34ed9d8d32481ea43d37dc | |
parent | 6af9c02cc29f6f9beda6e47bfbaf7afae1465ad3 (diff) |
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
-rw-r--r-- | java/com/android/incallui/videotech/ims/ImsVideoTech.java | 2 |
1 files changed, 2 insertions, 0 deletions
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( |