Merge pull request #13 from meowarex/dev

Legacy Blur & Notif controls fix <3
This commit is contained in:
2026-05-21 04:34:02 +10:00
committed by GitHub
2 changed files with 8 additions and 11 deletions
@@ -89,16 +89,13 @@ object ManifestPatcher {
} }
} }
"uses-sdk" -> object : NodeVisitor(nv) { // Preserve the original targetSdkVersion. Downgrading it (e.g. to 30)
override fun attr(ns: String?, name: String?, resourceId: Int, type: Int, value: Any?) { // makes Android render MediaStyle notifications with the legacy
if (name == "targetSdkVersion") { // compact-row layout instead of the modern auto-rendered controls,
val version = if (Build.VERSION.SDK_INT >= 31) 30 else 28 // because TIDAL's notification builder skips addAction() on API 33+
super.attr(ns, name, resourceId, type, version) // expecting the system to auto-infer buttons from the MediaSession —
} else { // which only happens for apps targeting SDK >= 31.
super.attr(ns, name, resourceId, type, value) "uses-sdk" -> nv
}
}
}
"permission" -> object : NodeVisitor(nv) { "permission" -> object : NodeVisitor(nv) {
override fun attr(ns: String?, name: String, resourceId: Int, type: Int, value: Any?) { override fun attr(ns: String?, name: String, resourceId: Int, type: Int, value: Any?) {
+1 -1
View File
@@ -63,7 +63,7 @@
+ +
+ move-result-object v5 + move-result-object v5
+ +
+ const/high16 v7, 0x42c00000 # 96f (blur radius dp) + const/high16 v7, 0x44b40000 # 1440f (blur radius dp)
+ +
+ invoke-static {v7}, Landroidx/compose/ui/unit/Dp;->constructor-impl(F)F + invoke-static {v7}, Landroidx/compose/ui/unit/Dp;->constructor-impl(F)F
+ +