diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-03-06 17:46:05 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-03-06 17:46:05 -0800 |
commit | bd1aa37e7a3686f72b39b7657b64f7588a9bee34 (patch) | |
tree | 110035a9e6cbdd23e53dda7bcfc64f2ed70bba41 /src | |
parent | 30b678fe56cf44218b25397aa8579a01d87090ec (diff) | |
download | dsub-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')
-rw-r--r-- | src/github/daneren2005/dsub/util/ImageLoader.java | 4 |
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(); |