Redraw CoverView when the generated bitmap is in the cache

postInvalidate was not being called in this case
This commit is contained in:
Christopher Eby 2011-10-11 16:23:28 -05:00
parent 2ad4e90cda
commit 3a5e506c6c

View File

@ -322,11 +322,12 @@ public final class CoverView extends View implements Handler.Callback {
bitmap = CoverBitmap.createBitmap(getContext(), mCoverStyle, song, getWidth(), getHeight(), mBitmapCache.discardOldest());
mBitmaps[i] = bitmap;
mBitmapCache.put(song.id, bitmap);
postInvalidate();
} else {
mBitmaps[i] = bitmap;
mBitmapCache.touch(song.id);
}
postInvalidate();
}
/**