From 4d60bff648b1e7e2cffa02602f5d9c00ce5816a4 Mon Sep 17 00:00:00 2001 From: "linghao.kong" Date: Wed, 12 Jan 2022 15:41:47 +0800 Subject: Camera2: Invoke saveVideo when mVideoFileDescriptor != null If MediaStore.EXTRA_OUTPUT is not specified, the video file still needs to be saved to default external storage. Test: Run BYOD Managed Provisioning video capture without extra output path Bug: 215294773 Change-Id: I586642681ef257fee808cc17bf879c86ef346e76 Signed-off-by: linghao.kong --- src/com/android/camera/VideoModule.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java index 17d9fe747..abbae5265 100644 --- a/src/com/android/camera/VideoModule.java +++ b/src/com/android/camera/VideoModule.java @@ -1508,7 +1508,8 @@ public class VideoModule extends CameraModule if (mIsVideoCaptureIntent) { // if no file save is needed, we can show the post capture UI now showCaptureResult(); - } else { + } + if (mVideoFileDescriptor != null) { saveVideo(); } } -- cgit v1.2.3