summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanthosh Kumar H E <skhara@codeaurora.org>2015-03-09 18:55:17 +0530
committerSteve Kondik <steve@cyngn.com>2016-07-30 05:05:24 -0700
commita704fe9c708074abbfb862bebe69dc642ef1ee1c (patch)
treede4e71e5befeee43e33e0bb08f12f7c3f949311d
parent5933a0b131eb0d53f3ae0fb06d3a76a8f7a6c6a2 (diff)
downloadandroid_packages_apps_Snap-a704fe9c708074abbfb862bebe69dc642ef1ee1c.zip
android_packages_apps_Snap-a704fe9c708074abbfb862bebe69dc642ef1ee1c.tar.gz
android_packages_apps_Snap-a704fe9c708074abbfb862bebe69dc642ef1ee1c.tar.bz2
SnapdragonCamera: Fix face detection UI offset
Revert face detection UI offset on old UI. Change-Id: Idcc3bec22883ca6734ca6eb29c49169645c5300a
-rw-r--r--src/com/android/camera/ui/FaceView.java4
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 303d81c..93c4fee 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.