Debug logging statement was visible in release version

This commit is contained in:
daniel oeh 2012-08-28 12:50:27 +02:00
parent ef41463b0c
commit bc4c9654ea

View File

@ -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,6 +24,7 @@ public class BitmapDecoder {
int srcHeight = options.outHeight;
int length = Math.max(srcWidth, srcHeight);
int sampleSize = calculateSampleSize(preferredLength, length);
if (AppConfig.DEBUG)
Log.d(TAG, "Using samplesize " + sampleSize);
options.inJustDecodeBounds = false;
options.inSampleSize = sampleSize;