diff options
author | Wu-cheng Li <wuchengli@google.com> | 2011-08-22 23:39:54 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2011-08-23 16:46:00 +0800 |
commit | 71d5570605d517a271f40c749cb8123d5f2c3059 (patch) | |
tree | 3d541515a90556d5e3ad65a92d0ef465415a9e86 | |
parent | cd5f34c389d0d929687b95885e348d574f574d85 (diff) | |
download | packages_apps_LegacyCamera-71d5570605d517a271f40c749cb8123d5f2c3059.zip packages_apps_LegacyCamera-71d5570605d517a271f40c749cb8123d5f2c3059.tar.gz packages_apps_LegacyCamera-71d5570605d517a271f40c749cb8123d5f2c3059.tar.bz2 |
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
-rw-r--r-- | src/com/android/camera/Camera.java | 4 |
1 files 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; } |