From a704fe9c708074abbfb862bebe69dc642ef1ee1c Mon Sep 17 00:00:00 2001 From: Santhosh Kumar H E Date: Mon, 9 Mar 2015 18:55:17 +0530 Subject: SnapdragonCamera: Fix face detection UI offset Revert face detection UI offset on old UI. Change-Id: Idcc3bec22883ca6734ca6eb29c49169645c5300a --- src/com/android/camera/ui/FaceView.java | 4 ++-- 1 file 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. -- cgit v1.2.3