mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-12-07 01:51:27 +01:00
fix(Spotify - Hide Create button): Remove obsolete patch that is no longer needed (#6252)
This commit is contained in:
committed by
GitHub
parent
f238ae9895
commit
59d85b28a7
@@ -7,6 +7,7 @@ import app.revanced.extension.spotify.shared.ComponentFilters.StringComponentFil
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@Deprecated(forRemoval = true)
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
public final class HideCreateButtonPatch {
|
public final class HideCreateButtonPatch {
|
||||||
|
|
||||||
|
|||||||
@@ -7,10 +7,12 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
|||||||
import com.android.tools.smali.dexlib2.Opcode
|
import com.android.tools.smali.dexlib2.Opcode
|
||||||
import com.android.tools.smali.dexlib2.iface.reference.MethodReference
|
import com.android.tools.smali.dexlib2.iface.reference.MethodReference
|
||||||
|
|
||||||
|
@Deprecated("Obsolete")
|
||||||
internal val navigationBarItemSetClassFingerprint = fingerprint {
|
internal val navigationBarItemSetClassFingerprint = fingerprint {
|
||||||
strings("NavigationBarItemSet(")
|
strings("NavigationBarItemSet(")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated("Obsolete")
|
||||||
internal val navigationBarItemSetConstructorFingerprint = fingerprint {
|
internal val navigationBarItemSetConstructorFingerprint = fingerprint {
|
||||||
accessFlags(AccessFlags.PUBLIC, AccessFlags.CONSTRUCTOR)
|
accessFlags(AccessFlags.PUBLIC, AccessFlags.CONSTRUCTOR)
|
||||||
// Make sure the method checks whether navigation bar items are null before adding them.
|
// 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 {
|
internal val oldNavigationBarAddItemFingerprint = fingerprint {
|
||||||
strings("Bottom navigation tabs exceeds maximum of 5 tabs")
|
strings("Bottom navigation tabs exceeds maximum of 5 tabs")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,11 +14,11 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
|
|||||||
private const val EXTENSION_CLASS_DESCRIPTOR =
|
private const val EXTENSION_CLASS_DESCRIPTOR =
|
||||||
"Lapp/revanced/extension/spotify/layout/hide/createbutton/HideCreateButtonPatch;"
|
"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")
|
@Suppress("unused")
|
||||||
val hideCreateButtonPatch = bytecodePatch(
|
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.",
|
description = "Hides the \"Create\" button in the navigation bar. The latest app targets do not need this patch.",
|
||||||
use = false
|
|
||||||
) {
|
) {
|
||||||
compatibleWith("com.spotify.music")
|
compatibleWith("com.spotify.music")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user