Fix album cover shrink

This commit is contained in:
Hemanth S 2020-05-12 01:09:44 +05:30
parent adf2d57703
commit e61294d281
7 changed files with 10 additions and 20 deletions

View file

@ -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:

View file

@ -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)
)
}