diff options
Diffstat (limited to 'src/com/android/camera/CaptureModule.java')
-rwxr-xr-x | src/com/android/camera/CaptureModule.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index 8564d4cb9..3480c762a 100755 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -6145,7 +6145,6 @@ public class CaptureModule implements CameraModule, PhotoController, if(DEBUG) Log.d(TAG, "isDepthFocus is " + isDepthFocus); if (isDepthFocus != null && isDepthFocus == 1) { mIsDepthFocus = true; - return; } else { mIsDepthFocus = false; } @@ -6154,6 +6153,10 @@ public class CaptureModule implements CameraModule, PhotoController, if (DEBUG) e.printStackTrace(); } + // If focus started then don't return + if (mIsDepthFocus && mLastResultAFState == CaptureResult.CONTROL_AF_STATE_INACTIVE) { + return; + } // Report state change when AF state has changed. if (resultAFState != mLastResultAFState && mFocusStateListener != null) { mActivity.runOnUiThread(new Runnable() { |