diff --git a/patches/src/main/kotlin/app/revanced/patches/spotify/layout/theme/CustomThemePatch.kt b/patches/src/main/kotlin/app/revanced/patches/spotify/layout/theme/CustomThemePatch.kt index 4546d80f4..55325bc4d 100644 --- a/patches/src/main/kotlin/app/revanced/patches/spotify/layout/theme/CustomThemePatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/spotify/layout/theme/CustomThemePatch.kt @@ -187,11 +187,16 @@ val customThemePatch = resourcePatch( } // Login screen gradient. - document("res/drawable/start_screen_gradient.xml").use { document -> - val gradientNode = document.getElementsByTagName("gradient").item(0) as Element + try { + document("res/drawable/start_screen_gradient.xml").use { document -> + val gradientNode = document.getElementsByTagName("gradient").item(0) as Element - gradientNode.setAttribute("android:startColor", "@color/gray_7") - gradientNode.setAttribute("android:endColor", "@color/gray_7") + gradientNode.setAttribute("android:startColor", "@color/gray_7") + gradientNode.setAttribute("android:endColor", "@color/gray_7") + } + } catch (_: Exception) { + // Fails for 9.0.66+ + // printWarn("Failed to locate start_screen_gradient.xml, skipping modification.") } } } diff --git a/patches/src/main/kotlin/app/revanced/patches/spotify/misc/fix/SpoofClientPatch.kt b/patches/src/main/kotlin/app/revanced/patches/spotify/misc/fix/SpoofClientPatch.kt index b5d5bf22c..d57370b3f 100644 --- a/patches/src/main/kotlin/app/revanced/patches/spotify/misc/fix/SpoofClientPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/spotify/misc/fix/SpoofClientPatch.kt @@ -12,9 +12,9 @@ import app.revanced.util.returnEarly internal const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/spotify/misc/fix/SpoofClientPatch;" +@Deprecated("Patch no longer functions") @Suppress("unused") val spoofClientPatch = bytecodePatch( - name = "Spoof client", description = "Spoofs the client to fix various functions of the app.", ) { val requestListenerPort by intOption(