summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/util
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2012-08-06 12:53:52 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2012-08-06 12:53:52 +0200
commit8bde0e0fe28c2e8d08ef03777547ecf2b2a6cff4 (patch)
treeeeaf916790f6baa59016678fe4784de9f895ef56 /src/de/danoeh/antennapod/util
parent0b62b06cdf90521571f0d916a12d7925a6dd0eed (diff)
downloadAntennaPod-8bde0e0fe28c2e8d08ef03777547ecf2b2a6cff4.zip
Enabled auto-scaling of bitmaps
Diffstat (limited to 'src/de/danoeh/antennapod/util')
-rw-r--r--src/de/danoeh/antennapod/util/BitmapDecoder.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/de/danoeh/antennapod/util/BitmapDecoder.java b/src/de/danoeh/antennapod/util/BitmapDecoder.java
index 65664ddd9..a38291b34 100644
--- a/src/de/danoeh/antennapod/util/BitmapDecoder.java
+++ b/src/de/danoeh/antennapod/util/BitmapDecoder.java
@@ -41,6 +41,7 @@ public class BitmapDecoder {
options.inJustDecodeBounds = false;
options.inSampleSize = sampleSize;
options.inPreferredConfig = Bitmap.Config.ARGB_8888;
+ options.inScaled = false;
Bitmap decodedBitmap = BitmapFactory.decodeFile(fileUrl, options);
if (decodedBitmap == null) {
@@ -50,10 +51,11 @@ public class BitmapDecoder {
decodedBitmap = BitmapFactory.decodeFile(fileUrl);
}
if (decodedBitmap != null) {
-
+ return decodedBitmap;
+ /*
return Bitmap.createScaledBitmap(decodedBitmap,
preferredLength, preferredLength, false);
-
+ */
} else {
return null;
}