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());
|
bitmap = CoverBitmap.createBitmap(getContext(), mCoverStyle, song, getWidth(), getHeight(), mBitmapCache.discardOldest());
|
||||||
mBitmaps[i] = bitmap;
|
mBitmaps[i] = bitmap;
|
||||||
mBitmapCache.put(song.id, bitmap);
|
mBitmapCache.put(song.id, bitmap);
|
||||||
postInvalidate();
|
|
||||||
} else {
|
} else {
|
||||||
mBitmaps[i] = bitmap;
|
mBitmaps[i] = bitmap;
|
||||||
mBitmapCache.touch(song.id);
|
mBitmapCache.touch(song.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
postInvalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user