Fix loggin mode (#60)

This commit is contained in:
Hristo Hristov
2016-10-20 13:42:47 +03:00
committed by GitHub
parent 1711988a28
commit 2c7efac368
3 changed files with 7 additions and 7 deletions

View File

@@ -360,7 +360,7 @@ public class CommonLayoutParams extends FrameLayout.LayoutParams {
}
static void log(String tag, String message) {
Log.d(tag, message);
Log.v(tag, message);
}
static StringBuilder getStringBuilder() {

View File

@@ -260,7 +260,7 @@ public class Fetcher extends Resizer {
}
return decodeSampledBitmapFromResource(mResources, resId, decodeWidth, decodeHeight, getCache());
} else {
Log.v(TAG, "Missing ResourceID: " + stringData);
Log.v(TAG, "Missing Image with resourceID: " + stringData);
}
} else {
if (useCache) {

View File

@@ -97,7 +97,7 @@ public abstract class Worker {
Bitmap value = null;
String dataString = String.valueOf(data);
if (debuggable > 0) {
Log.d(TAG, "loadImage on: " + imageView + " to: " + dataString);
Log.v(TAG, "loadImage on: " + imageView + " to: " + dataString);
}
if (mCache != null && useCache) {
@@ -120,12 +120,12 @@ public abstract class Worker {
if (value != null) {
// Bitmap found in memory cache
if (debuggable > 0) {
Log.d(TAG, "Set ImageBitmap on: " + imageView + " to: " + dataString);
Log.v(TAG, "Set ImageBitmap on: " + imageView + " to: " + dataString);
}
imageView.setImageBitmap(value);
if (listener != null) {
if (debuggable > 0) {
Log.d(TAG, "OnImageLoadedListener on: " + imageView + " to: " + dataString);
Log.v(TAG, "OnImageLoadedListener on: " + imageView + " to: " + dataString);
}
listener.onImageLoaded(true);
}
@@ -352,14 +352,14 @@ public abstract class Worker {
if (value != null && imageView != null) {
success = true;
if (debuggable > 0) {
Log.d(TAG, "Set ImageDrawable on: " + imageView + " to: " + dataString);
Log.v(TAG, "Set ImageDrawable on: " + imageView + " to: " + dataString);
}
imageView.setImageBitmap(value);
}
if (mOnImageLoadedListener != null) {
if (debuggable > 0) {
Log.d(TAG, "OnImageLoadedListener on: " + imageView + " to: " + dataString);
Log.v(TAG, "OnImageLoadedListener on: " + imageView + " to: " + dataString);
}
mOnImageLoadedListener.onImageLoaded(success);
}