summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2011-08-23 02:01:38 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-08-23 02:01:38 -0700
commit5e4949c34eb558f13869d2c9a641d06a8366fe55 (patch)
tree2bab6ce09deab2a4c4592e8ca854a107cd12a17a
parentcc3238fae72d6579288e0cdc03c7d09539ebb734 (diff)
parent71d5570605d517a271f40c749cb8123d5f2c3059 (diff)
downloadLegacyCamera-5e4949c34eb558f13869d2c9a641d06a8366fe55.zip
LegacyCamera-5e4949c34eb558f13869d2c9a641d06a8366fe55.tar.gz
LegacyCamera-5e4949c34eb558f13869d2c9a641d06a8366fe55.tar.bz2
Merge "Start face detection every time after starting preview."
-rw-r--r--src/com/android/camera/Camera.java4
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;
}