From cc930c3dbbc0be029b66df6a3cc7333243142c0d Mon Sep 17 00:00:00 2001 From: Adrian Ulrich Date: Thu, 2 Feb 2017 19:04:41 +0100 Subject: [PATCH] never return covers for unindexed songs Invalid song objects have an id == -1, unindexed songs start at -2, so we should also skip them as their album information is bonkers --- src/ch/blinkenlights/android/vanilla/Song.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch/blinkenlights/android/vanilla/Song.java b/src/ch/blinkenlights/android/vanilla/Song.java index 2cc5b744..566151fb 100644 --- a/src/ch/blinkenlights/android/vanilla/Song.java +++ b/src/ch/blinkenlights/android/vanilla/Song.java @@ -224,7 +224,7 @@ public class Song implements Comparable { * @return The album art or null if no album art could be found */ private Bitmap getCoverInternal(Context context, int size) { - if (CoverCache.mCoverLoadMode == 0 || id == -1 || (flags & FLAG_NO_COVER) != 0) + if (CoverCache.mCoverLoadMode == 0 || id <= -1 || (flags & FLAG_NO_COVER) != 0) return null; if (sCoverCache == null)