Log is done only when debugging is enabled (#59)

This commit is contained in:
Hristo Hristov
2016-10-19 16:29:34 +03:00
committed by GitHub
parent 00297e069f
commit e29205f370

View File

@@ -124,7 +124,9 @@ public abstract class Worker {
}
imageView.setImageBitmap(value);
if (listener != null) {
Log.d(TAG, "OnImageLoadedListener on: " + imageView + " to: " + dataString);
if (debuggable > 0) {
Log.d(TAG, "OnImageLoadedListener on: " + imageView + " to: " + dataString);
}
listener.onImageLoaded(true);
}
} else if (cancelPotentialWork(data, imageView)) {