Added default color drawable
This commit is contained in:
parent
5bce11177f
commit
d65314f4b8
47 changed files with 306 additions and 125 deletions
|
@ -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))
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue