diff options
author | Wu-cheng Li <wuchengli@google.com> | 2010-08-05 09:58:08 -0700 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2010-08-05 10:17:45 -0700 |
commit | 8e5e83e6c5de9186e25bca70f6efc918dd2c5050 (patch) | |
tree | 90fdaf1e182a815e2a53dcfff2330d8bb8f310d4 /src | |
parent | b9a9ea703802b541f3e47afaffbc97e892acde85 (diff) | |
download | LegacyCamera-8e5e83e6c5de9186e25bca70f6efc918dd2c5050.zip LegacyCamera-8e5e83e6c5de9186e25bca70f6efc918dd2c5050.tar.gz LegacyCamera-8e5e83e6c5de9186e25bca70f6efc918dd2c5050.tar.bz2 |
Do not cancel autofocus when snapshot is in progress.
The bug occurred when camera key was half pressed, focus completed,
camera key was fully pressed, and camera key was released.
Change-Id: I4f25ee2e819cecbb59809de85fb450091e655927
Diffstat (limited to 'src')
-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 c438522..0502d97 100644 --- a/src/com/android/camera/Camera.java +++ b/src/com/android/camera/Camera.java @@ -1401,8 +1401,8 @@ public class Camera extends NoSearchActivity implements View.OnClickListener, private void cancelAutoFocus() { // User releases half-pressed focus key. - if (mFocusState == FOCUSING || mFocusState == FOCUS_SUCCESS - || mFocusState == FOCUS_FAIL) { + if (mStatus != SNAPSHOT_IN_PROGRESS && (mFocusState == FOCUSING + || mFocusState == FOCUS_SUCCESS || mFocusState == FOCUS_FAIL)) { Log.v(TAG, "Cancel autofocus."); mHeadUpDisplay.setEnabled(true); mCameraDevice.cancelAutoFocus(); |