From 7929debdccbf3e0cbaf91d476e6f3008c62671f1 Mon Sep 17 00:00:00 2001 From: Angus Kong Date: Wed, 27 Jul 2011 08:27:15 +0800 Subject: Fix preview orientation bug on some devices. bug:5031609 Change-Id: If70a5a4125315caf4d53534d1e884bde6bc80cbd --- src/com/android/camera/panorama/PanoramaActivity.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/com') diff --git a/src/com/android/camera/panorama/PanoramaActivity.java b/src/com/android/camera/panorama/PanoramaActivity.java index 5d18525..4a87875 100644 --- a/src/com/android/camera/panorama/PanoramaActivity.java +++ b/src/com/android/camera/panorama/PanoramaActivity.java @@ -151,6 +151,10 @@ public class PanoramaActivity extends Activity { private void configureCamera(Parameters parameters) { mCameraDevice.setParameters(parameters); + Util.setCameraDisplayOrientation( + Util.getDisplayRotation(this), + CameraHolder.instance().getBackCameraId(), mCameraDevice); + int bufSize = getPreviewBufSize(); Log.v(TAG, "BufSize = " + bufSize); for (int i = 0; i < 10; i++) { -- cgit v1.1