Added default color drawable

This commit is contained in:
h4h13 2020-02-25 18:45:23 +05:30
parent 5bce11177f
commit d65314f4b8
47 changed files with 306 additions and 125 deletions

View file

@ -87,7 +87,7 @@ class PlayingNotificationImpl : PlayingNotification() {
fun update(bitmap: Bitmap?, color: Int) {
var bitmapFinal = bitmap
if (bitmapFinal == null) {
bitmapFinal = BitmapFactory.decodeResource(service.resources, R.drawable.default_album_art)
bitmapFinal = BitmapFactory.decodeResource(service.resources, R.drawable.default_audio_art)
}
val toggleFavorite = NotificationCompat.Action(favoriteResId, service.getString(R.string.action_toggle_favorite), retrievePlaybackAction(TOGGLE_FAVORITE))

View file

@ -112,8 +112,8 @@ class PlayingNotificationOreo : PlayingNotification() {
notificationLayout.setImageViewBitmap(R.id.largeIcon, bitmap)
notificationLayoutBig.setImageViewBitmap(R.id.largeIcon, bitmap)
} else {
notificationLayout.setImageViewResource(R.id.largeIcon, R.drawable.default_album_art)
notificationLayoutBig.setImageViewResource(R.id.largeIcon, R.drawable.default_album_art)
notificationLayout.setImageViewResource(R.id.largeIcon, R.drawable.default_audio_art)
notificationLayoutBig.setImageViewResource(R.id.largeIcon, R.drawable.default_audio_art)
}
if (!PreferenceUtil.getInstance(service).coloredNotification()) {