Skip to content
Snippets Groups Projects
Commit 9b640747 authored by Robert Stone's avatar Robert Stone
Browse files

Notification bar transparency issue resolved in Android 14

parent 3158536c
No related branches found
No related tags found
1 merge request!1863Notification bar transparency issue resolved in Android 14
Pipeline #442760 passed with stages
in 20 minutes and 8 seconds
......@@ -243,7 +243,7 @@ class ArtworkProvider : ContentProvider() {
// Non-square cover art will have an artworkMrl, which will be padded, re-encoded, and cached.
// Videos, tracks with no cover art, etc. use mediaId and will be processed per library item.
var key = mw?.artworkMrl ?: "$mediaId"
val nonTransparent = (Build.VERSION.SDK_INT >= 33) && ("com.android.systemui" == callingPackage)
val nonTransparent = (Build.VERSION.SDK_INT == 33) && ("com.android.systemui" == callingPackage)
if (nonTransparent) key += "_nonTransparent"
if (fallbackIcon != null) key += fallbackIcon.toString()
val image = getOrPutImage(key) {
......@@ -551,7 +551,7 @@ class ArtworkProvider : ContentProvider() {
const val SHUFFLE_ALL = "shuffle_all"
//Used to store webp encoded bitmap of the currently playing artwork
private val memCache: LruCache<String, ByteArray> = LruCache<String, ByteArray>(if (Build.VERSION.SDK_INT >= 33) 2 else 1)
private val memCache: LruCache<String, ByteArray> = LruCache<String, ByteArray>(if (Build.VERSION.SDK_INT == 33) 2 else 1)
@Synchronized
fun clear() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment