fix(Spotify): Remove broken Spoof client patch (#5833)
This commit is contained in:
+9
-4
@@ -187,11 +187,16 @@ val customThemePatch = resourcePatch(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Login screen gradient.
|
// Login screen gradient.
|
||||||
document("res/drawable/start_screen_gradient.xml").use { document ->
|
try {
|
||||||
val gradientNode = document.getElementsByTagName("gradient").item(0) as Element
|
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:startColor", "@color/gray_7")
|
||||||
gradientNode.setAttribute("android:endColor", "@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.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ import app.revanced.util.returnEarly
|
|||||||
|
|
||||||
internal const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/spotify/misc/fix/SpoofClientPatch;"
|
internal const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/spotify/misc/fix/SpoofClientPatch;"
|
||||||
|
|
||||||
|
@Deprecated("Patch no longer functions")
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
val spoofClientPatch = bytecodePatch(
|
val spoofClientPatch = bytecodePatch(
|
||||||
name = "Spoof client",
|
|
||||||
description = "Spoofs the client to fix various functions of the app.",
|
description = "Spoofs the client to fix various functions of the app.",
|
||||||
) {
|
) {
|
||||||
val requestListenerPort by intOption(
|
val requestListenerPort by intOption(
|
||||||
|
|||||||
Reference in New Issue
Block a user