Fix album cover shrink
This commit is contained in:
parent
adf2d57703
commit
e61294d281
7 changed files with 10 additions and 20 deletions
|
@ -737,7 +737,6 @@ public class MusicService extends Service implements
|
|||
updateMediaSessionMetaData();
|
||||
break;
|
||||
case PreferenceUtil.COLORED_NOTIFICATION:
|
||||
case PreferenceUtil.DOMINANT_COLOR:
|
||||
updateNotification();
|
||||
break;
|
||||
case PreferenceUtil.CLASSIC_NOTIFICATION:
|
||||
|
|
|
@ -41,6 +41,7 @@ import com.bumptech.glide.request.target.Target
|
|||
|
||||
class PlayingNotificationImpl : PlayingNotification() {
|
||||
private var target: Target<BitmapPaletteWrapper>? = null
|
||||
|
||||
@Synchronized
|
||||
override fun update() {
|
||||
stopped = false
|
||||
|
@ -83,13 +84,8 @@ class PlayingNotificationImpl : PlayingNotification() {
|
|||
glideAnimation: GlideAnimation<in BitmapPaletteWrapper>
|
||||
) {
|
||||
update(
|
||||
resource.bitmap, when {
|
||||
PreferenceUtil.getInstance(service).isDominantColor -> RetroColorUtil.getDominantColor(
|
||||
resource.bitmap,
|
||||
Color.TRANSPARENT
|
||||
)
|
||||
else -> RetroColorUtil.getColor(resource.palette, Color.TRANSPARENT)
|
||||
}
|
||||
resource.bitmap,
|
||||
RetroColorUtil.getColor(resource.palette, Color.TRANSPARENT)
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue