summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDheeraj CVR <cvr.dheeraj@gmail.com>2014-04-19 02:33:46 +0530
committerArne Coucheron <arco68@gmail.com>2018-01-26 01:07:54 +0100
commite42261150fbf2f0c807d7b9f6d0b1901d4118fee (patch)
tree62274ebbe4cec069f118ff902fc3175353ba4dd5
parentac8f5ca25275cda8d0d0722a63e6d66bc965cb07 (diff)
downloadandroid_packages_apps_Snap-e42261150fbf2f0c807d7b9f6d0b1901d4118fee.zip
android_packages_apps_Snap-e42261150fbf2f0c807d7b9f6d0b1901d4118fee.tar.gz
android_packages_apps_Snap-e42261150fbf2f0c807d7b9f6d0b1901d4118fee.tar.bz2
Camera2: Prevent autofocus when video snapshot is in progress
During video recording if screen is tapped repeatedly, autofocus is started while the snapshot is taken. This would either result in an out of focus snapshot which would also disturb the focus in the recorded video or crash the sensors that can't handle autofocus during snapshot. Change-Id: If2763094f5ab7536e4409469276de54580e803c8
-rw-r--r--src/com/android/camera/VideoModule.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index c126c0e..02dc3ad 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -642,7 +642,7 @@ public class VideoModule implements CameraModule,
}
// Check if metering area or focus area is supported.
- if (mFocusAreaSupported || mMeteringAreaSupported) {
+ if ((mFocusAreaSupported || mMeteringAreaSupported) && !mSnapshotInProgress) {
mFocusManager.onSingleTapUp(x, y);
}
}