always set cover for notification
Setting a `null` (or very small cover!) image causes Android on API < 30 (i think) to not display the seek bar in the notification, which is... silly?
This commit is contained in:
parent
e6e6bcc323
commit
4c290f0e3f
@ -2119,7 +2119,10 @@ public final class PlaybackService extends Service
|
||||
public Notification createNotification(Song song, int state, int mode)
|
||||
{
|
||||
final boolean playing = (state & FLAG_PLAYING) != 0;
|
||||
final Bitmap cover = song.getMediumCover(this);
|
||||
Bitmap cover = song.getMediumCover(this);
|
||||
if (cover == null) {
|
||||
cover = CoverBitmap.generateDefaultCover(this, CoverCache.SIZE_MEDIUM, CoverCache.SIZE_MEDIUM);
|
||||
}
|
||||
|
||||
ComponentName service = new ComponentName(this, PlaybackService.class);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user