summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/CaptureUI.java
diff options
context:
space:
mode:
authormingwax <mingwax@codeaurora.org>2017-01-19 15:38:39 +0800
committermingwax <mingwax@codeaurora.org>2017-01-19 15:55:14 +0800
commit61fcbe0db3b88036592673bd5bc83aef68058696 (patch)
tree20a78852153d3d8d90406e09817538c9d2af0824 /src/com/android/camera/CaptureUI.java
parent36f2a32a9277b09badec5a16d7f6b8c9b581015e (diff)
downloadandroid_packages_apps_Snap-61fcbe0db3b88036592673bd5bc83aef68058696.tar.gz
android_packages_apps_Snap-61fcbe0db3b88036592673bd5bc83aef68058696.tar.bz2
android_packages_apps_Snap-61fcbe0db3b88036592673bd5bc83aef68058696.zip
SnapdragonCamera:Fix photo reversed when enable selfie Mirror
When camera is open front camer, and is in horizontal screen mode enable Selfie Mirror, set the image rotation angle of 180 degrees, to ensure the picture is right direction. CRs-Fixed: 1112749 Change-Id: I9b53804b7897f174c537693ff59db96df858e71d
Diffstat (limited to 'src/com/android/camera/CaptureUI.java')
-rw-r--r--[-rwxr-xr-x]src/com/android/camera/CaptureUI.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/CaptureUI.java b/src/com/android/camera/CaptureUI.java
index 2ef89abdf..43e53c56a 100755..100644
--- a/src/com/android/camera/CaptureUI.java
+++ b/src/com/android/camera/CaptureUI.java
@@ -391,7 +391,7 @@ public class CaptureUI implements FocusOverlayManager.FocusUI,
mFaceView = (Camera2FaceView) mRootView.findViewById(R.id.face_view);
mCancelButton = (ImageView) mRootView.findViewById(R.id.cancel_button);
- int intentMode = mModule.getCurrentIntentMode();
+ final int intentMode = mModule.getCurrentIntentMode();
if (intentMode != CaptureModule.INTENT_MODE_NORMAL) {
mCameraControls.setIntentMode(intentMode);
mCameraControls.setVideoMode(false);