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
1 changed files with 3 additions and 1 deletions

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,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;