From bc4c9654eaacaf4d53b1718db4ae4f9ad26d7ba0 Mon Sep 17 00:00:00 2001 From: daniel oeh Date: Tue, 28 Aug 2012 12:50:27 +0200 Subject: [PATCH] Debug logging statement was visible in release version --- src/de/danoeh/antennapod/util/BitmapDecoder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;