playback: use 2x2 no-cover bitmap to fix palette
This commit is contained in:
@@ -510,7 +510,7 @@ private class PlaybackNotification(
|
|||||||
nameRes = R.string.lbl_playback,
|
nameRes = R.string.lbl_playback,
|
||||||
)
|
)
|
||||||
|
|
||||||
/** Cached 1x1 transparent bitmap. */
|
/** Cached 2x2 transparent bitmap. 2x2 to stop palette extraction blowing up the app */
|
||||||
private val EMPTY_BITMAP: Bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888)
|
private val EMPTY_BITMAP: Bitmap = Bitmap.createBitmap(2, 2, Bitmap.Config.ARGB_8888)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user