From 562db5a0ec57f65cf4014ce3f7dad0f9324bb2f1 Mon Sep 17 00:00:00 2001
From: Angus Kong <shkong@google.com>
Date: Mon, 14 Nov 2011 20:13:12 +0800
Subject: Fix too small panorama review on phones.

bug:5611399
Change-Id: I09c400d0faa7e5753a728f2a8ba9a8bc4fcf5a77
---
 res/layout/pano_review.xml                            | 14 +++++++++-----
 src/com/android/camera/panorama/PanoramaActivity.java |  1 +
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/res/layout/pano_review.xml b/res/layout/pano_review.xml
index fa4f83b..7b9a92e 100644
--- a/res/layout/pano_review.xml
+++ b/res/layout/pano_review.xml
@@ -50,11 +50,15 @@
         </com.android.camera.ui.RotateLayout>
     </RelativeLayout>
 
-    <ImageView android:id="@+id/pano_reviewarea"
-            android:rotation="90"
-            android:scaleType="fitCenter"
-            android:layout_height="match_parent"
-            android:layout_width="@dimen/pano_mosaic_surface_height" />
+    <com.android.camera.ui.RotateLayout
+            android:id="@+id/pano_rotate_reviewarea"
+            android:layout_width="@dimen/pano_mosaic_surface_height"
+            android:layout_height="match_parent">
+        <ImageView android:id="@+id/pano_reviewarea"
+                android:scaleType="fitCenter"
+                android:layout_height="match_parent"
+                android:layout_width="match_parent" />
+    </com.android.camera.ui.RotateLayout>
 
     <LinearLayout android:id="@+id/pano_review_control"
             style="@style/PanoViewHorizontalBar"
diff --git a/src/com/android/camera/panorama/PanoramaActivity.java b/src/com/android/camera/panorama/PanoramaActivity.java
index a65d263..fe70827 100755
--- a/src/com/android/camera/panorama/PanoramaActivity.java
+++ b/src/com/android/camera/panorama/PanoramaActivity.java
@@ -710,6 +710,7 @@ public class PanoramaActivity extends ActivityBase implements
                     (Rotatable) findViewById(R.id.pano_review_saving_indication_layout),
                     (Rotatable) findViewById(R.id.pano_saving_progress_bar_layout),
                     (Rotatable) findViewById(R.id.pano_review_cancel_button_layout),
+                    (Rotatable) findViewById(R.id.pano_rotate_reviewarea),
                     (Rotatable) mRotateDialog,
                     (Rotatable) mCaptureIndicator,
                     (Rotatable) mModePicker,
-- 
cgit v1.1