diff options
author | Doris Liu <tianliu@google.com> | 2014-01-02 17:40:12 -0800 |
---|---|---|
committer | Doris Liu <tianliu@google.com> | 2014-01-02 17:49:57 -0800 |
commit | ca4a5668c5bcda027bd896ebf17c8ef374e2ac75 (patch) | |
tree | a1f6ba5ffd24ec20e260f2cd8843f18e067f984e /src/com/android/camera/FocusOverlayManager.java | |
parent | de45652f4232fdfcdee3717b6bd111848fa37003 (diff) | |
download | android_packages_apps_Camera2-ca4a5668c5bcda027bd896ebf17c8ef374e2ac75.tar.gz android_packages_apps_Camera2-ca4a5668c5bcda027bd896ebf17c8ef374e2ac75.tar.bz2 android_packages_apps_Camera2-ca4a5668c5bcda027bd896ebf17c8ef374e2ac75.zip |
Center preview UI in the live preview rect
Center flash animation
Center zoom animation
Center focus indicator for auto focus
TODO: Gcam focus indicator is not centered in the live preview
Bug: 12114128
Change-Id: I5e7f79fdf6a705789d995fc3bf3570262bc8bb49
Diffstat (limited to 'src/com/android/camera/FocusOverlayManager.java')
-rw-r--r-- | src/com/android/camera/FocusOverlayManager.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/camera/FocusOverlayManager.java b/src/com/android/camera/FocusOverlayManager.java index a28ba2c46..31bb8da04 100644 --- a/src/com/android/camera/FocusOverlayManager.java +++ b/src/com/android/camera/FocusOverlayManager.java @@ -320,6 +320,8 @@ public class FocusOverlayManager implements PreviewStatusListener.PreviewAreaSiz // animate on false->true trasition only b/8219520 if (moving && !mPreviousMoving) { + // Auto focus at the center of the preview. + mUI.setFocusPosition(mPreviewRect.width() / 2, mPreviewRect.height() / 2); mUI.onFocusStarted(); } else if (!moving) { mUI.onFocusSucceeded(true); |