commit | e16a1b3ce74956b7a2f75859f98162ba577b7c87 | [log] [tgz] |
---|---|---|
author | LuK1337 <priv.luk@gmail.com> | Thu Aug 18 20:09:09 2022 +0200 |
committer | LuK1337 <priv.luk@gmail.com> | Thu Sep 29 22:28:28 2022 +0200 |
tree | 1ff025d3ce50802d7827094c78fd282db1c1a5fd | |
parent | c780e5279e61a90ea83c54557fcf1b7325002d1d [diff] |
Aperture: Workaround crash when flipping camera in video mode Change-Id: Ia23d9c2ac2f4920450d476a541751c9acfe941a2
diff --git a/app/src/main/java/org/lineageos/aperture/MainActivity.kt b/app/src/main/java/org/lineageos/aperture/MainActivity.kt index ec8fa18..dadb3cb 100644 --- a/app/src/main/java/org/lineageos/aperture/MainActivity.kt +++ b/app/src/main/java/org/lineageos/aperture/MainActivity.kt
@@ -541,6 +541,7 @@ CameraController.IMAGE_CAPTURE } CameraMode.VIDEO -> { + cameraController.videoCaptureTargetQuality = null // FIXME: video preview restart cameraController.videoCaptureTargetQuality = sharedPreferences.videoQuality CameraController.VIDEO_CAPTURE }