summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDheeraj CVR <cvr.dheeraj@gmail.com>2014-06-23 22:00:07 +0530
committerSteve Kondik <steve@cyngn.com>2016-11-02 12:22:27 -0700
commit64f4613f78bb08bbae8c5be03f486b83825d8187 (patch)
tree307517b3b06f673f6b9339c6045faed2304896ba
parentace51a0737c62fe1c7e7f7e5f953c4c41f630538 (diff)
downloadandroid_packages_apps_Snap-64f4613f78bb08bbae8c5be03f486b83825d8187.tar.gz
android_packages_apps_Snap-64f4613f78bb08bbae8c5be03f486b83825d8187.tar.bz2
android_packages_apps_Snap-64f4613f78bb08bbae8c5be03f486b83825d8187.zip
Camera2: Prevent propogating CancelAutoFocus during Video Recording
When AutoFocus is started during Video Recording, CancelAutoFocus is called after KEY_FOCUS_TIME seconds. CancelAutoFocus has the side effect of resetting the sensor AF position and will result in instant loss of focus which is not a desired event when AF is manually triggered in case of Video Recording. Change-Id: Icee7f6dfd4ad083c9b383ee2a4df6a34e4668de6
-rw-r--r--src/com/android/camera/VideoModule.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index e443f7f0b..e74dcfdbf 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -593,7 +593,6 @@ public class VideoModule implements CameraModule,
@Override
public void cancelAutoFocus() {
if (null != mCameraDevice) {
- mCameraDevice.cancelAutoFocus();
setFocusParameters();
}
}