diff options
author | Byunghun Jeon <bjeon@codeaurora.org> | 2016-08-19 17:26:32 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-09-27 11:15:21 -0700 |
commit | 4b5b4aaaed98a4156beb1a6fa2f1e1ee124731b5 (patch) | |
tree | 72eec795b52829a07cbd8beb0bffd64ec9c5b852 /src/com/android/camera/CaptureModule.java | |
parent | 638172e20dcad32ca3d79b599eb6054c3acd5443 (diff) | |
download | android_packages_apps_Snap-4b5b4aaaed98a4156beb1a6fa2f1e1ee124731b5.tar.gz android_packages_apps_Snap-4b5b4aaaed98a4156beb1a6fa2f1e1ee124731b5.tar.bz2 android_packages_apps_Snap-4b5b4aaaed98a4156beb1a6fa2f1e1ee124731b5.zip |
SnapdragonCamera: Fix AF indicator not disappearing issue
After picture taking is done, clear the AF indicator.
Change-Id: I00961601f44304fe33e80ff9c270ca892e71e7a7
CRs-Fixed: 1055830
Diffstat (limited to 'src/com/android/camera/CaptureModule.java')
-rw-r--r-- | src/com/android/camera/CaptureModule.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index f1fd71a11..92b95e5ec 100644 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -1424,6 +1424,14 @@ public class CaptureModule implements CameraModule, PhotoController, applySettingsForUnlockFocus(builder, id); mCaptureSession[id].capture(builder.build(), mCaptureCallback, mCameraHandler); mState[id] = STATE_PREVIEW; + if (id == getMainCameraId()) { + mActivity.runOnUiThread(new Runnable() { + @Override + public void run() { + mUI.clearFocus(); + } + }); + } mControlAFMode = CaptureRequest.CONTROL_AF_MODE_CONTINUOUS_PICTURE; applySettingsForUnlockExposure(mPreviewRequestBuilder[id], id); setAFModeToPreview(id, mControlAFMode); |