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) {
override fun attr(ns: String?, name: String?, resourceId: Int, type: Int, value: Any?) {
if (name == "targetSdkVersion") {
val version = if (Build.VERSION.SDK_INT >= 31) 30 else 28
super.attr(ns, name, resourceId, type, version)
} else {
super.attr(ns, name, resourceId, type, value)
}
}
}
// Preserve the original targetSdkVersion. Downgrading it (e.g. to 30)
// makes Android render MediaStyle notifications with the legacy
// compact-row layout instead of the modern auto-rendered controls,
// because TIDAL's notification builder skips addAction() on API 33+
// expecting the system to auto-infer buttons from the MediaSession —
// which only happens for apps targeting SDK >= 31.
"uses-sdk" -> nv
"permission" -> object : NodeVisitor(nv) {
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
+
+ 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
+