Slightly updated the appwidget appearance, use smaller bitmap size for palette.
This commit is contained in:
parent
a238d6564e
commit
bd69dc1d43
13 changed files with 111 additions and 87 deletions
|
|
@ -230,7 +230,7 @@ public class PlayingNotificationHelper {
|
|||
notificationLayoutExpanded.setImageViewBitmap(R.id.icon, albumArt);
|
||||
if (isColored) {
|
||||
int defaultColor = service.getResources().getColor(R.color.default_colored_notification_color);
|
||||
int newColor = Palette.from(albumArt).generate().getVibrantColor(defaultColor);
|
||||
int newColor = Palette.from(albumArt).resizeBitmapSize(100).generate().getVibrantColor(defaultColor);
|
||||
setBackgroundColor(newColor);
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue