aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
Diffstat (limited to 'src/github/daneren2005')
-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();