summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDheeraj CVR <cvr.dheeraj@gmail.com>2014-06-23 22:00:07 +0530
committerMichael Bestas <mikeioannina@gmail.com>2015-09-20 20:02:05 +0300
commit0575f19cf85fc06a070dd1ec15d952126e76d96c (patch)
tree4f4cee9fb67a646de0c060d3de91b83bb5b6897f
parent63a86a9acad9564605b147662e37cf8cc8958a9d (diff)
downloadandroid_packages_apps_Snap-cm-12.1.tar.gz
android_packages_apps_Snap-cm-12.1.tar.bz2
android_packages_apps_Snap-cm-12.1.zip
Camera2: Prevent propogating CancelAutoFocus during Video Recordingcm-12.1
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 7a34adaf0..cfca4d671 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -514,7 +514,6 @@ public class VideoModule implements CameraModule,
@Override
public void cancelAutoFocus() {
if (null != mCameraDevice) {
- mCameraDevice.cancelAutoFocus();
setFocusParameters();
}
}