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 <[email protected]>
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index 17d9fe7..abbae52 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -1508,7 +1508,8 @@
if (mIsVideoCaptureIntent) {
// if no file save is needed, we can show the post capture UI now
showCaptureResult();
- } else {
+ }
+ if (mVideoFileDescriptor != null) {
saveVideo();
}
}