Redraw CoverView when the generated bitmap is in the cache
postInvalidate was not being called in this case
This commit is contained in:
parent
2ad4e90cda
commit
3a5e506c6c
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user