summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorDheeraj CVR <cvr.dheeraj@gmail.com>2014-04-19 02:33:46 +0530
committerSteve Kondik <steve@cyngn.com>2016-11-02 12:22:27 -0700
commitace51a0737c62fe1c7e7f7e5f953c4c41f630538 (patch)
tree250f92c71b99cc62e937c9b119518870811bac13 /src/com/android
parentd0f3a1a41579a065e20385130d6ae89c02818a15 (diff)
downloadandroid_packages_apps_Snap-ace51a0737c62fe1c7e7f7e5f953c4c41f630538.tar.gz
android_packages_apps_Snap-ace51a0737c62fe1c7e7f7e5f953c4c41f630538.tar.bz2
android_packages_apps_Snap-ace51a0737c62fe1c7e7f7e5f953c4c41f630538.zip
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
Diffstat (limited to 'src/com/android')
-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 90f6f2537..e443f7f0b 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -636,7 +636,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);
}
}