From 61a0b86f6b0d25f630f5d996a484f332167708ef Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Fri, 7 Nov 2025 13:14:11 +0200 Subject: [PATCH] fix(Spotify - Hide Create button): Remove obsolete patch that is no longer needed --- .../layout/hide/createbutton/HideCreateButtonPatch.java | 1 + .../patches/spotify/layout/hide/createbutton/Fingerprints.kt | 3 +++ .../spotify/layout/hide/createbutton/HideCreateButtonPatch.kt | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/extensions/spotify/src/main/java/app/revanced/extension/spotify/layout/hide/createbutton/HideCreateButtonPatch.java b/extensions/spotify/src/main/java/app/revanced/extension/spotify/layout/hide/createbutton/HideCreateButtonPatch.java index 1ed2e771f7..47cfdf0858 100644 --- a/extensions/spotify/src/main/java/app/revanced/extension/spotify/layout/hide/createbutton/HideCreateButtonPatch.java +++ b/extensions/spotify/src/main/java/app/revanced/extension/spotify/layout/hide/createbutton/HideCreateButtonPatch.java @@ -7,6 +7,7 @@ import java.util.List; +@Deprecated(forRemoval = true) @SuppressWarnings("unused") public final class HideCreateButtonPatch { diff --git a/patches/src/main/kotlin/app/revanced/patches/spotify/layout/hide/createbutton/Fingerprints.kt b/patches/src/main/kotlin/app/revanced/patches/spotify/layout/hide/createbutton/Fingerprints.kt index 5d555b1879..d9235b8c80 100644 --- a/patches/src/main/kotlin/app/revanced/patches/spotify/layout/hide/createbutton/Fingerprints.kt +++ b/patches/src/main/kotlin/app/revanced/patches/spotify/layout/hide/createbutton/Fingerprints.kt @@ -7,10 +7,12 @@ import com.android.tools.smali.dexlib2.AccessFlags import com.android.tools.smali.dexlib2.Opcode import com.android.tools.smali.dexlib2.iface.reference.MethodReference +@Deprecated("Obsolete") internal val navigationBarItemSetClassFingerprint = fingerprint { strings("NavigationBarItemSet(") } +@Deprecated("Obsolete") internal val navigationBarItemSetConstructorFingerprint = fingerprint { accessFlags(AccessFlags.PUBLIC, AccessFlags.CONSTRUCTOR) // Make sure the method checks whether navigation bar items are null before adding them. @@ -23,6 +25,7 @@ internal val navigationBarItemSetConstructorFingerprint = fingerprint { } } +@Deprecated("Obsolete") internal val oldNavigationBarAddItemFingerprint = fingerprint { strings("Bottom navigation tabs exceeds maximum of 5 tabs") } diff --git a/patches/src/main/kotlin/app/revanced/patches/spotify/layout/hide/createbutton/HideCreateButtonPatch.kt b/patches/src/main/kotlin/app/revanced/patches/spotify/layout/hide/createbutton/HideCreateButtonPatch.kt index 4bb03fa068..465f18d690 100644 --- a/patches/src/main/kotlin/app/revanced/patches/spotify/layout/hide/createbutton/HideCreateButtonPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/spotify/layout/hide/createbutton/HideCreateButtonPatch.kt @@ -14,11 +14,11 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/spotify/layout/hide/createbutton/HideCreateButtonPatch;" +@Deprecated("Patch no longer works with the latest version of Spotify, " + + "and Spotify has added this functionality to the app") @Suppress("unused") val hideCreateButtonPatch = bytecodePatch( - name = "Hide Create button", description = "Hides the \"Create\" button in the navigation bar. The latest app targets do not need this patch.", - use = false ) { compatibleWith("com.spotify.music")