diff options
author | Suman Mukherjee <sumam@codeaurora.org> | 2014-04-07 13:09:41 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-04-08 01:11:49 -0700 |
commit | 17849d86730124aec2c866eef431e07a89385d4b (patch) | |
tree | 1b84e21c332a4139f2afa87ae51a53f4ac698e54 /src/com/android/camera | |
parent | 9274e27bc38c585259b99499bd511fd9d4e1cd76 (diff) | |
download | android_packages_apps_Snap-17849d86730124aec2c866eef431e07a89385d4b.tar.gz android_packages_apps_Snap-17849d86730124aec2c866eef431e07a89385d4b.tar.bz2 android_packages_apps_Snap-17849d86730124aec2c866eef431e07a89385d4b.zip |
Camera: AF circle is not coming on 1'st tap while FD is ON
ISSUE:
For ZSL mode, face detection last callback is received in 40-50ms
after calling stopfacedetection on camera device. Due to this,
even though application immediately clears UI, invalid circles
remain on screen. To avoid that, earlier fix made to delay clearing
of face circles by 100ms. With that fix, for non-zsl case, AF
circle is not appearing on 1'st tap with FD.
Fix:
Change made in HAL so that this delay issue will not be there.
In application, made the code aligned to base android by removing
the 100ms delay in clearing faces.
Change-Id: I44b4d5c40c45aad553a00243f9b39f414b8e3c1e
CRs-Fixed: 638111
Diffstat (limited to 'src/com/android/camera')
-rw-r--r-- | src/com/android/camera/PhotoModule.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java index e1cd668cb..1d0b0903c 100644 --- a/src/com/android/camera/PhotoModule.java +++ b/src/com/android/camera/PhotoModule.java @@ -783,12 +783,7 @@ public class PhotoModule mFaceDetectionStarted = false; mCameraDevice.setFaceDetectionCallback(null, null); mCameraDevice.stopFaceDetection(); - mHandler.postDelayed(new Runnable() { - @Override - public void run(){ - mUI.clearFaces(); - } - }, 100); + mUI.clearFaces(); } } |