Skip to content

Commit 59d85b2

Browse files
author
LisoUseInAIKyrios
authored
fix(Spotify - Hide Create button): Remove obsolete patch that is no longer needed (#6252)
1 parent f238ae9 commit 59d85b2

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

extensions/spotify/src/main/java/app/revanced/extension/spotify/layout/hide/createbutton/HideCreateButtonPatch.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import java.util.List;
99

10+
@Deprecated(forRemoval = true)
1011
@SuppressWarnings("unused")
1112
public final class HideCreateButtonPatch {
1213

patches/src/main/kotlin/app/revanced/patches/spotify/layout/hide/createbutton/Fingerprints.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ import com.android.tools.smali.dexlib2.AccessFlags
77
import com.android.tools.smali.dexlib2.Opcode
88
import com.android.tools.smali.dexlib2.iface.reference.MethodReference
99

10+
@Deprecated("Obsolete")
1011
internal val navigationBarItemSetClassFingerprint = fingerprint {
1112
strings("NavigationBarItemSet(")
1213
}
1314

15+
@Deprecated("Obsolete")
1416
internal val navigationBarItemSetConstructorFingerprint = fingerprint {
1517
accessFlags(AccessFlags.PUBLIC, AccessFlags.CONSTRUCTOR)
1618
// Make sure the method checks whether navigation bar items are null before adding them.
@@ -23,6 +25,7 @@ internal val navigationBarItemSetConstructorFingerprint = fingerprint {
2325
}
2426
}
2527

28+
@Deprecated("Obsolete")
2629
internal val oldNavigationBarAddItemFingerprint = fingerprint {
2730
strings("Bottom navigation tabs exceeds maximum of 5 tabs")
2831
}

patches/src/main/kotlin/app/revanced/patches/spotify/layout/hide/createbutton/HideCreateButtonPatch.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
1414
private const val EXTENSION_CLASS_DESCRIPTOR =
1515
"Lapp/revanced/extension/spotify/layout/hide/createbutton/HideCreateButtonPatch;"
1616

17+
@Deprecated("Patch no longer works with the latest version of Spotify, " +
18+
"and Spotify has added this functionality to the app")
1719
@Suppress("unused")
1820
val hideCreateButtonPatch = bytecodePatch(
19-
name = "Hide Create button",
2021
description = "Hides the \"Create\" button in the navigation bar. The latest app targets do not need this patch.",
21-
use = false
2222
) {
2323
compatibleWith("com.spotify.music")
2424

0 commit comments

Comments
 (0)