aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-03-06 17:46:05 -0800
committerScott Jackson <daneren2005@gmail.com>2015-03-06 17:46:05 -0800
commitbd1aa37e7a3686f72b39b7657b64f7588a9bee34 (patch)
tree110035a9e6cbdd23e53dda7bcfc64f2ed70bba41 /src/github
parent30b678fe56cf44218b25397aa8579a01d87090ec (diff)
downloaddsub-bd1aa37e7a3686f72b39b7657b64f7588a9bee34.tar.gz
dsub-bd1aa37e7a3686f72b39b7657b64f7588a9bee34.tar.bz2
dsub-bd1aa37e7a3686f72b39b7657b64f7588a9bee34.zip
Only log error if origBitmap was recycled, not if its null
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/util/ImageLoader.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/util/ImageLoader.java b/src/github/daneren2005/dsub/util/ImageLoader.java
index 1cbdc4f7..b4bad6e7 100644
--- a/src/github/daneren2005/dsub/util/ImageLoader.java
+++ b/src/github/daneren2005/dsub/util/ImageLoader.java
@@ -350,7 +350,9 @@ public class ImageLoader {
if ( origBitmap != null && !origBitmap.isRecycled()) {
remoteControl.editMetadata(false).putBitmap(RemoteControlClient.MetadataEditor.BITMAP_KEY_ARTWORK, origBitmap).apply();
} else {
- Log.e(TAG, "Tried to load a recycled bitmap.");
+ if(origBitmap != null) {
+ Log.e(TAG, "Tried to load a recycled bitmap.");
+ }
remoteControl.editMetadata(false)
.putBitmap(RemoteControlClient.MetadataEditor.BITMAP_KEY_ARTWORK, null)
.apply();