summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/camera/Camera.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java
index ed8ef5e..4c576a5 100644
--- a/src/com/android/camera/Camera.java
+++ b/src/com/android/camera/Camera.java
@@ -1489,6 +1489,7 @@ public class Camera extends ActivityBase implements FocusManager.Listener,
private void closeCamera() {
if (mCameraDevice != null) {
+ mCameraDevice.cancelAutoFocus(); // Reset the focus.
CameraHolder.instance().release();
mCameraDevice.setZoomChangeListener(null);
mCameraDevice.setFaceDetectionListener(null);
@@ -1528,6 +1529,11 @@ public class Camera extends ActivityBase implements FocusManager.Listener,
}
mAeAwbLock = false; // Always unlock AE and AWB before start.
setCameraParameters(UPDATE_PARAM_ALL);
+ // If the focus mode is continuous autofocus, call cancelAutoFocus to
+ // resume it because it may have been paused by autoFocus call.
+ if (Parameters.FOCUS_MODE_CONTINUOUS_PICTURE.equals(mParameters.getFocusMode())) {
+ mCameraDevice.cancelAutoFocus();
+ }
try {
Log.v(TAG, "startPreview");