summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDheeraj CVR <cvr.dheeraj@gmail.com>2014-04-19 02:33:46 +0530
committerMichael Bestas <mikeioannina@gmail.com>2017-01-04 21:57:39 +0200
commit45d24272abc1b8d077ff6709141430528a1ad8db (patch)
tree44582cf39d3275448e5a0a33118e06bc986ece8f
parentfd4fd3ea606ab548f1d3a0c1a779f83879e94ab6 (diff)
downloadandroid_packages_apps_Snap-45d24272abc1b8d077ff6709141430528a1ad8db.tar.gz
android_packages_apps_Snap-45d24272abc1b8d077ff6709141430528a1ad8db.tar.bz2
android_packages_apps_Snap-45d24272abc1b8d077ff6709141430528a1ad8db.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
-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);
}
}