diff options
author | Santhosh Kumar H E <skhara@codeaurora.org> | 2015-03-09 18:55:17 +0530 |
---|---|---|
committer | Santhosh Kumar H E <skhara@codeaurora.org> | 2015-03-09 18:56:27 +0530 |
commit | a5de41dee272d91bdb3bf66e65a1943b4837e0fc (patch) | |
tree | f61ebf9cb32472a1c8b5108390ae1a41892cd7e0 /src/com/android/camera/ui/FaceView.java | |
parent | a408254edf4ce48ce0cec7ca752f98b207f1c326 (diff) | |
download | android_packages_apps_Snap-a5de41dee272d91bdb3bf66e65a1943b4837e0fc.tar.gz android_packages_apps_Snap-a5de41dee272d91bdb3bf66e65a1943b4837e0fc.tar.bz2 android_packages_apps_Snap-a5de41dee272d91bdb3bf66e65a1943b4837e0fc.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/ui/FaceView.java')
-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 8013520a9..d3599ebc7 100644 --- a/src/com/android/camera/ui/FaceView.java +++ b/src/com/android/camera/ui/FaceView.java @@ -208,8 +208,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. |