From fb08a21a6d7fcc6a5d0d9eb5a49cc83e806008ed Mon Sep 17 00:00:00 2001 From: junjiez Date: Wed, 14 Sep 2016 13:54:16 +0800 Subject: 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 --- src/com/android/camera/PhotoUI.java | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/com/android/camera/PhotoUI.java') 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(); } -- cgit v1.2.3