[Android] Notification bar transparency issue resolved in Android 14
Robert Stone
git at videolan.org
Mon Feb 26 06:54:10 UTC 2024
vlc-android | branch: master | Robert Stone <rhstone at gmail.com> | Sat Feb 24 09:27:29 2024 -0800| [9b640747012f76c9f2737a0b777e2b04fada22ea] | committer: Robert Stone
Notification bar transparency issue resolved in Android 14
> https://code.videolan.org/videolan/vlc-android/commit/9b640747012f76c9f2737a0b777e2b04fada22ea
---
application/vlc-android/src/org/videolan/vlc/ArtworkProvider.kt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/ArtworkProvider.kt b/application/vlc-android/src/org/videolan/vlc/ArtworkProvider.kt
index 2e967678d1..fdd3f64369 100644
--- a/application/vlc-android/src/org/videolan/vlc/ArtworkProvider.kt
+++ b/application/vlc-android/src/org/videolan/vlc/ArtworkProvider.kt
@@ -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() {
More information about the Android
mailing list