summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjinwu <jinwu@codeaurora.org>2018-09-21 18:37:26 +0800
committerjinwu <jinwu@codeaurora.org>2018-09-21 18:37:26 +0800
commit14221e442f9b3beb768cabab7bc9a3c7d45d252d (patch)
tree3ccbf82280d0256a0f79099be20455196282cffe
parenta26301351c28e820f6c2346ebd07265cfed14c8b (diff)
downloadandroid_packages_apps_Snap-14221e442f9b3beb768cabab7bc9a3c7d45d252d.tar.gz
android_packages_apps_Snap-14221e442f9b3beb768cabab7bc9a3c7d45d252d.tar.bz2
android_packages_apps_Snap-14221e442f9b3beb768cabab7bc9a3c7d45d252d.zip
Fix focus circle not update issue
Change-Id: Id92ace9088ca08ca999e1e2773dcacb978650aac CRs-Fixed: 2297616
-rwxr-xr-xsrc/com/android/camera/CaptureModule.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index 7bfee3041..a5029ce86 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -6052,7 +6052,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;
}
@@ -6061,6 +6060,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() {