From 6621df48fcdc44d8f7cd2c6254349d54f3a03b07 Mon Sep 17 00:00:00 2001 From: Martin Fietz Date: Sat, 28 Feb 2015 13:40:52 +0100 Subject: [PATCH] Correct audio player cover scaling reported in AntennaPod/AntennaPod#621 The former scaling would scale the image so that width and height of the cover would be at least as large as the view. Now, the covers dimensions will be equal or less than the dimensions of the cover view. --- app/src/main/res/layout/cover_fragment.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/res/layout/cover_fragment.xml b/app/src/main/res/layout/cover_fragment.xml index 7d86346e3..18540aa1f 100644 --- a/app/src/main/res/layout/cover_fragment.xml +++ b/app/src/main/res/layout/cover_fragment.xml @@ -13,7 +13,7 @@ android:layout_height="match_parent" android:layout_gravity="center" android:adjustViewBounds="true" - android:scaleType="centerCrop" + android:scaleType="centerInside" tools:src="@android:drawable/sym_def_app_icon" /> \ No newline at end of file