aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain
diff options
context:
space:
mode:
authorunyoungwax <unyoungwax@hotmail.com>2016-02-23 14:41:26 +0800
committerunyoungwax <unyoungwax@hotmail.com>2016-02-23 14:41:26 +0800
commitb0b6adc58b4fd8df291ffa58f3014e1da3e42f23 (patch)
tree06dd544ca38c685ce720c8b415873eefcaff5ca4 /OpenKeychain
parent0784a0b4301b9bd15a80d135bdece19f44bc4258 (diff)
downloadopen-keychain-b0b6adc58b4fd8df291ffa58f3014e1da3e42f23.tar.gz
open-keychain-b0b6adc58b4fd8df291ffa58f3014e1da3e42f23.tar.bz2
open-keychain-b0b6adc58b4fd8df291ffa58f3014e1da3e42f23.zip
Resize QR code properly in landscape orientation
Diffstat (limited to 'OpenKeychain')
-rw-r--r--OpenKeychain/src/main/res/layout/qr_code_activity.xml7
1 files changed, 3 insertions, 4 deletions
diff --git a/OpenKeychain/src/main/res/layout/qr_code_activity.xml b/OpenKeychain/src/main/res/layout/qr_code_activity.xml
index 5709bf0ff..47f5c06d8 100644
--- a/OpenKeychain/src/main/res/layout/qr_code_activity.xml
+++ b/OpenKeychain/src/main/res/layout/qr_code_activity.xml
@@ -27,12 +27,11 @@
app:cardUseCompatPadding="true"
app:cardCornerRadius="4dp">
- <org.sufficientlysecure.keychain.ui.widget.AspectRatioImageView
+ <ImageView
android:id="@+id/qr_code_image"
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:dominantMeasurement="width"
- app:aspectRatioEnabled="true" />
+ android:layout_height="match_parent"
+ android:scaleType="centerInside"/>
</android.support.v7.widget.CardView>
</LinearLayout>