Skip to content

Commit ae1e806

Browse files
committed
fix(Spotify - Remove Create tab): Remove old instruction that no longer relevant to fix issues with notification player
The 'Create' button might appear on older versions of Spotify, but it should soon be hidden by a feature flag, possibly after restarting the app.
1 parent a67cc5c commit ae1e806

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

patches/src/main/kotlin/app/revanced/patches/spotify/extended/RemoveCreateTabPatch.kt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package app.revanced.patches.spotify.extended
22

3-
import app.revanced.patcher.extensions.InstructionExtensions.addInstruction
43
import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
54
import app.revanced.patcher.extensions.InstructionExtensions.instructions
65
import app.revanced.patcher.extensions.InstructionExtensions.replaceInstruction
@@ -16,12 +15,6 @@ import com.android.tools.smali.dexlib2.Opcode
1615
import com.android.tools.smali.dexlib2.iface.instruction.NarrowLiteralInstruction
1716
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
1817

19-
internal val addCreateTabMethodFingerprint = fingerprint {
20-
custom { method, _ ->
21-
method.containsLiteralInstruction(getResourceId(STRING, "bottom_navigation_bar_create_tab_title"))
22-
}
23-
}
24-
2518
internal val removeCreateTabMethodFingerprint = fingerprint {
2619
custom { method, _ ->
2720
method.containsLiteralInstruction(getResourceId(STRING, "navigationbar_musicappitems_create_title"))
@@ -37,8 +30,6 @@ val removeCreateTabPatch = bytecodePatch(
3730
dependsOn(resourceMappingPatch)
3831

3932
execute {
40-
addCreateTabMethodFingerprint.method.addInstruction(0, "return-void")
41-
4233
val targetMethod = removeCreateTabMethodFingerprint.method
4334

4435
val lastInstructionIndex = targetMethod.instructions.count() - 1

0 commit comments

Comments
 (0)