From 71d5570605d517a271f40c749cb8123d5f2c3059 Mon Sep 17 00:00:00 2001 From: Wu-cheng Li Date: Mon, 22 Aug 2011 23:39:54 +0800 Subject: Start face detection every time after starting preview. This fix the face detection is not resumed after tap-to-focus and take a picture. According to javadoc, face detection should be restarted after starting preview. bug:4460717 Change-Id: Ic092de72e42c281c78f9e11b67df9d89c0b10388 --- src/com/android/camera/Camera.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java index 1cd10eb..d54f09c 100644 --- a/src/com/android/camera/Camera.java +++ b/src/com/android/camera/Camera.java @@ -419,7 +419,6 @@ public class Camera extends ActivityBase implements View.OnClickListener, installIntentFilter(); initializeFocusTone(); initializeZoom(); - startFaceDetection(); // Show the tap to focus toast if this is the first start. if (mFocusAreaSupported && mPreferences.getBoolean(CameraSettings.KEY_TAP_TO_FOCUS_PROMPT_SHOWN, true)) { @@ -476,7 +475,6 @@ public class Camera extends ActivityBase implements View.OnClickListener, installIntentFilter(); initializeFocusTone(); initializeZoom(); - startFaceDetection(); keepMediaProviderInstance(); checkStorage(); @@ -1901,6 +1899,8 @@ public class Camera extends ActivityBase implements View.OnClickListener, closeCamera(); throw new RuntimeException("startPreview failed", ex); } + + startFaceDetection(); mZoomState = ZOOM_STOPPED; mCameraState = IDLE; } -- cgit v1.1