diff options
author | likaid <likaid@codeaurora.org> | 2015-03-10 17:48:31 +0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-03-13 15:45:02 -0700 |
commit | 6696bb2e965842190b1d7df69d924e7e028d0daa (patch) | |
tree | 9fd88451a1fb033e5c06d8ede0c99e93b570fdbe /src/com/android/camera/PhotoUI.java | |
parent | 614419b3e643e5d3d56b93455e51b3b9052e4e35 (diff) | |
download | android_packages_apps_Snap-6696bb2e965842190b1d7df69d924e7e028d0daa.tar.gz android_packages_apps_Snap-6696bb2e965842190b1d7df69d924e7e028d0daa.tar.bz2 android_packages_apps_Snap-6696bb2e965842190b1d7df69d924e7e028d0daa.zip |
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
Diffstat (limited to 'src/com/android/camera/PhotoUI.java')
-rw-r--r-- | src/com/android/camera/PhotoUI.java | 3 |
1 files changed, 3 insertions, 0 deletions
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() { |