summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/PhotoUI.java
diff options
context:
space:
mode:
authorjunjiez <junjiez@codeaurora.org>2016-09-14 13:54:16 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-09-13 23:14:02 -0700
commitfb08a21a6d7fcc6a5d0d9eb5a49cc83e806008ed (patch)
tree8a4629ebb202ec83a1598f5d657fb716cad657ce /src/com/android/camera/PhotoUI.java
parente2c6bdcd24425d811cf98b967a09a42449967f56 (diff)
downloadandroid_packages_apps_Snap-fb08a21a6d7fcc6a5d0d9eb5a49cc83e806008ed.tar.gz
android_packages_apps_Snap-fb08a21a6d7fcc6a5d0d9eb5a49cc83e806008ed.tar.bz2
android_packages_apps_Snap-fb08a21a6d7fcc6a5d0d9eb5a49cc83e806008ed.zip
SnapdragonCamera:Fix Face circles are drawn at an offset
The layoutParam of FaceView is not the same as prview surface, and cause the offset.Remove setting layoutParam in the method onStartFaceDetection() and calculate the screen ratio in the VideoModule to get the correct layoutParam for FaceView Change-Id: I9bc2759bcb50514c183628e9d4f31d2f54437dc7 CRs-Fixed: 1064295
Diffstat (limited to 'src/com/android/camera/PhotoUI.java')
-rw-r--r--src/com/android/camera/PhotoUI.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/com/android/camera/PhotoUI.java b/src/com/android/camera/PhotoUI.java
index f8f632e6f..fb3ef36e2 100644
--- a/src/com/android/camera/PhotoUI.java
+++ b/src/com/android/camera/PhotoUI.java
@@ -1299,9 +1299,6 @@ public class PhotoUI implements PieListener,
mFaceView.setVisibility(View.VISIBLE);
mFaceView.setDisplayOrientation(orientation);
mFaceView.setMirror(mirror);
- LayoutParams layoutParams = new LayoutParams(
- LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
- mFaceView.setLayoutParams(layoutParams);
mFaceView.resume();
}