summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhuw <zhuw@codeaurora.org>2019-03-28 16:00:12 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2019-04-23 19:57:59 -0700
commitbda561b961d0e35bfe124f646c6c10fe14beddb2 (patch)
tree3a3b33dbdf05c0cca49f7a9828471ca5da665c28
parente7b55c8d6d823d58ea877b8819ed9669eb94034f (diff)
downloadandroid_packages_apps_Snap-bda561b961d0e35bfe124f646c6c10fe14beddb2.tar.gz
android_packages_apps_Snap-bda561b961d0e35bfe124f646c6c10fe14beddb2.tar.bz2
android_packages_apps_Snap-bda561b961d0e35bfe124f646c6c10fe14beddb2.zip
fix force closed if start recording before snapshot finished
do not allow recording before snapshot finished Change-Id: Idd412b9ab2cba3b867f9d2842885261a24d97d09 CRs-Fixed:2425049
-rwxr-xr-xsrc/com/android/camera/CaptureModule.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index df0f43700..907941dd6 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -4639,7 +4639,7 @@ public class CaptureModule implements CameraModule, PhotoController,
}
private boolean startRecordingVideo(final int cameraId) {
- if (null == mCameraDevice[cameraId]) {
+ if (null == mCameraDevice[cameraId] || !mUI.isShutterEnabled()) {
return false;
}
mStartRecordingTime = System.currentTimeMillis();