summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/util
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2012-08-28 12:50:27 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2012-08-28 12:50:27 +0200
commitbc4c9654eaacaf4d53b1718db4ae4f9ad26d7ba0 (patch)
tree3e884a6bc22cc3a010996e778905a8a8c64882b3 /src/de/danoeh/antennapod/util
parentef41463b0c29fb89d7b2253f969e642b22081890 (diff)
downloadAntennaPod-bc4c9654eaacaf4d53b1718db4ae4f9ad26d7ba0.zip
Debug logging statement was visible in release version0.9.4.2
Diffstat (limited to 'src/de/danoeh/antennapod/util')
-rw-r--r--src/de/danoeh/antennapod/util/BitmapDecoder.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/de/danoeh/antennapod/util/BitmapDecoder.java b/src/de/danoeh/antennapod/util/BitmapDecoder.java
index 3d966ee96..237c92a81 100644
--- a/src/de/danoeh/antennapod/util/BitmapDecoder.java
+++ b/src/de/danoeh/antennapod/util/BitmapDecoder.java
@@ -1,5 +1,6 @@
package de.danoeh.antennapod.util;
+import de.danoeh.antennapod.AppConfig;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.util.Log;
@@ -23,7 +24,8 @@ public class BitmapDecoder {
int srcHeight = options.outHeight;
int length = Math.max(srcWidth, srcHeight);
int sampleSize = calculateSampleSize(preferredLength, length);
- Log.d(TAG, "Using samplesize " + sampleSize);
+ if (AppConfig.DEBUG)
+ Log.d(TAG, "Using samplesize " + sampleSize);
options.inJustDecodeBounds = false;
options.inSampleSize = sampleSize;
options.inPreferredConfig = Bitmap.Config.ARGB_8888;