do not compare song object by reference

This commit is contained in:
Adrian Ulrich 2018-12-10 20:04:35 +01:00
parent 7fe09ad005
commit 17920a5103

View File

@ -543,7 +543,7 @@ public final class CoverView extends View implements Handler.Callback {
public Bitmap grepBitmap(Song song) {
final int len = mCacheSongs.length;
for (int i = 0; i < len ; i++) {
if (mCacheSongs[i] == song) {
if (song != null && song.equals(mCacheSongs[i])) {
return mCacheBitmaps[i];
}
}