Slightly updated the appwidget appearance, use smaller bitmap size for palette.

This commit is contained in:
Karim Abou Zeid 2015-07-05 17:39:10 +02:00
commit bd69dc1d43
13 changed files with 111 additions and 87 deletions

View file

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