summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDheeraj CVR <cvr.dheeraj@gmail.com>2014-04-18 21:03:46 (GMT)
committerMichael Bestas <mikeioannina@gmail.com>2015-09-20 17:02:05 (GMT)
commit63a86a9acad9564605b147662e37cf8cc8958a9d (patch)
tree21dc97b4f48d93e002d62d64e3ce570feb93ce05
parenteaae37ffbc5c216e43540cf0a561a82384631796 (diff)
downloadandroid_packages_apps_Snap-63a86a9acad9564605b147662e37cf8cc8958a9d.zip
android_packages_apps_Snap-63a86a9acad9564605b147662e37cf8cc8958a9d.tar.gz
android_packages_apps_Snap-63a86a9acad9564605b147662e37cf8cc8958a9d.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 c7ceee1..7a34ada 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -557,7 +557,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);
}
}