diff options
author | Santhosh Kumar H E <skhara@codeaurora.org> | 2015-03-09 18:55:17 +0530 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-07-30 05:05:24 -0700 |
commit | a704fe9c708074abbfb862bebe69dc642ef1ee1c (patch) | |
tree | de4e71e5befeee43e33e0bb08f12f7c3f949311d /src/com/android/camera | |
parent | 5933a0b131eb0d53f3ae0fb06d3a76a8f7a6c6a2 (diff) | |
download | android_packages_apps_Snap-a704fe9c708074abbfb862bebe69dc642ef1ee1c.tar.gz android_packages_apps_Snap-a704fe9c708074abbfb862bebe69dc642ef1ee1c.tar.bz2 android_packages_apps_Snap-a704fe9c708074abbfb862bebe69dc642ef1ee1c.zip |
SnapdragonCamera: Fix face detection UI offset
Revert face detection UI offset on old UI.
Change-Id: Idcc3bec22883ca6734ca6eb29c49169645c5300a
Diffstat (limited to 'src/com/android/camera')
-rw-r--r-- | src/com/android/camera/ui/FaceView.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/camera/ui/FaceView.java b/src/com/android/camera/ui/FaceView.java index 303d81cfe..93c4fee11 100644 --- a/src/com/android/camera/ui/FaceView.java +++ b/src/com/android/camera/ui/FaceView.java @@ -212,8 +212,8 @@ public class FaceView extends View rh = temp; } CameraUtil.prepareMatrix(mMatrix, mMirror, mDisplayOrientation, rw, rh); - int dx = 0; - int dy = 0; + int dx = (getWidth() - rw) / 2;; + int dy = (getHeight() - rh) / 2; // Focus indicator is directional. Rotate the matrix and the canvas // so it looks correctly in all orientations. |