summaryrefslogtreecommitdiffstats
path: root/res/layout/capture_module.xml
diff options
context:
space:
mode:
authorjunjiez <junjiez@codeaurora.org>2017-03-09 17:25:05 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2017-03-20 19:22:01 -0700
commit923c23592bab6e42e9e75be75bfdab29af70b91b (patch)
treef46ac08c9f37773e8e7b0f6b2508e7cb31213640 /res/layout/capture_module.xml
parentf8bced500c0f6023cfd36666a1412f03f4e39194 (diff)
downloadandroid_packages_apps_Snap-923c23592bab6e42e9e75be75bfdab29af70b91b.tar.gz
android_packages_apps_Snap-923c23592bab6e42e9e75be75bfdab29af70b91b.tar.bz2
android_packages_apps_Snap-923c23592bab6e42e9e75be75bfdab29af70b91b.zip
SnapdragonCamera: Fix wrong size in review
When 3rd-party app calls camera to capture in landscape, the image of preview needs to be rotated to fit the preview. Change-Id: I597160229fa41a977e872cb65264f8c7ea4f7a00 CRs-Fixed: 2016449
Diffstat (limited to 'res/layout/capture_module.xml')
-rwxr-xr-x[-rw-r--r--]res/layout/capture_module.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/res/layout/capture_module.xml b/res/layout/capture_module.xml
index 49dcbf66e..2c381bfdf 100644..100755
--- a/res/layout/capture_module.xml
+++ b/res/layout/capture_module.xml
@@ -133,12 +133,12 @@
android:layout_width="match_parent"
android:background="@android:color/black"
android:visibility="gone">
- <ImageView
+ <com.android.camera.ui.RotateImageView
android:id="@+id/preview_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:adjustViewBounds="true"
- android:scaleType="fitXY"/>
+ android:background="@android:color/black"
+ android:scaleType="fitCenter"/>
<ImageView
android:id="@+id/preview_play"