summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2012-08-15 17:12:57 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2012-08-15 17:12:57 +0200
commit034fa8a9e7c11427315bf23f973358fde7b7e060 (patch)
tree8bf12d8e05c9f442d73b867bdbaf2882258ae5ea
parent336beae40951338cc310fd3813e1fb02937fc1d4 (diff)
downloadAntennaPod-034fa8a9e7c11427315bf23f973358fde7b7e060.zip
Cover was not displayed correctly on some devices
-rw-r--r--res/layout/cover_fragment.xml7
-rw-r--r--src/de/danoeh/antennapod/util/BitmapDecoder.java2
2 files changed, 4 insertions, 5 deletions
diff --git a/res/layout/cover_fragment.xml b/res/layout/cover_fragment.xml
index e449b44f4..193d76a6f 100644
--- a/res/layout/cover_fragment.xml
+++ b/res/layout/cover_fragment.xml
@@ -11,7 +11,6 @@
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
- android:layout_marginBottom="8dp"
android:layout_marginTop="8dp"
android:gravity="center_horizontal"
android:textSize="18dp"
@@ -38,10 +37,10 @@
<ImageView
android:id="@+id/imgvCover"
- android:layout_marginLeft="55dp"
- android:layout_marginRight="55dp"
+ android:layout_marginLeft="60dp"
+ android:layout_marginRight="60dp"
android:layout_marginTop="8dp"
- android:layout_marginBottom="8dp"
+ android:layout_marginBottom="4dp"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_gravity="center"
diff --git a/src/de/danoeh/antennapod/util/BitmapDecoder.java b/src/de/danoeh/antennapod/util/BitmapDecoder.java
index a38291b34..84cff582f 100644
--- a/src/de/danoeh/antennapod/util/BitmapDecoder.java
+++ b/src/de/danoeh/antennapod/util/BitmapDecoder.java
@@ -41,7 +41,7 @@ public class BitmapDecoder {
options.inJustDecodeBounds = false;
options.inSampleSize = sampleSize;
options.inPreferredConfig = Bitmap.Config.ARGB_8888;
- options.inScaled = false;
+ options.inScaled = true;
Bitmap decodedBitmap = BitmapFactory.decodeFile(fileUrl, options);
if (decodedBitmap == null) {