From 61fcbe0db3b88036592673bd5bc83aef68058696 Mon Sep 17 00:00:00 2001 From: mingwax Date: Thu, 19 Jan 2017 15:38:39 +0800 Subject: =?UTF-8?q?SnapdragonCamera=EF=BC=9AFix=20photo=20reversed=20when?= =?UTF-8?q?=20enable=20selfie=20Mirror?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/com/android/camera/CaptureModule.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100755 => 100644 src/com/android/camera/CaptureModule.java (limited to 'src/com/android/camera/CaptureModule.java') diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java old mode 100755 new mode 100644 index b06bd2d12..dfebd95a8 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -1233,7 +1233,8 @@ public class CaptureModule implements CameraModule, PhotoController, mJpegImageData = data; } - public void showCapturedReview(final byte[] jpegData, int orientation, boolean mirror) { + public void showCapturedReview(final byte[] jpegData, final int orientation, + final boolean mirror) { mActivity.runOnUiThread(new Runnable() { @Override public void run() { -- cgit v1.2.3