From 6696bb2e965842190b1d7df69d924e7e028d0daa Mon Sep 17 00:00:00 2001 From: likaid Date: Tue, 10 Mar 2015 17:48:31 +0800 Subject: SnapdragonCamera: Draw the mouth position according to the orientation The mouth position on FaceView wasn't right in landscape mode because the orientation didn't change when rotated device. Re-correct the position of mouth when the device orientation changed. Change-Id: I81115bda8636e24484f2bda55415ebc0fa0a1f9a CRs-Fixed: 792980 --- src/com/android/camera/PhotoUI.java | 3 +++ 1 file changed, 3 insertions(+) (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 354b7b2f4..5a1efd3e6 100644 --- a/src/com/android/camera/PhotoUI.java +++ b/src/com/android/camera/PhotoUI.java @@ -1258,6 +1258,9 @@ public class PhotoUI implements PieListener, if (mCountDownView != null) mCountDownView.setOrientation(orientation); RotateTextToast.setOrientation(orientation); + if (mFaceView != null) { + mFaceView.setDisplayRotation(orientation); + } } public int getOrientation() { -- cgit v1.2.3