summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorAngus Kong <shkong@google.com>2011-07-27 08:27:15 +0800
committerAngus Kong <shkong@google.com>2011-07-27 08:57:13 +0800
commit7929debdccbf3e0cbaf91d476e6f3008c62671f1 (patch)
treed4b148f495a1811f960f160be47ff7ab2f25b595 /src/com
parentbdc7e2b461064b25b7f17b0941077fc97653093d (diff)
downloadLegacyCamera-7929debdccbf3e0cbaf91d476e6f3008c62671f1.zip
LegacyCamera-7929debdccbf3e0cbaf91d476e6f3008c62671f1.tar.gz
LegacyCamera-7929debdccbf3e0cbaf91d476e6f3008c62671f1.tar.bz2
Fix preview orientation bug on some devices.
bug:5031609 Change-Id: If70a5a4125315caf4d53534d1e884bde6bc80cbd
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/camera/panorama/PanoramaActivity.java4
1 files changed, 4 insertions, 0 deletions
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++) {