mirror of
https://github.com/revanced/revanced-patches
synced 2024-09-04 13:35:30 +02:00
fix(YouTube Music - Remove upgrade button): Remove the correct navigation bar item
A new item has been added to the list, so the index has to be shifted by one. This is not a final solution and the last index should be removed dynamically
This commit is contained in:
parent
597e15160a
commit
fd3813f66e
@ -18,7 +18,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.formats.Instruction35c
|
|||||||
|
|
||||||
|
|
||||||
@Patch
|
@Patch
|
||||||
@Name("Upgrade button remover")
|
@Name("Remove upgrade button")
|
||||||
@Description("Removes the upgrade tab from the pivot bar.")
|
@Description("Removes the upgrade tab from the pivot bar.")
|
||||||
@MusicCompatibility
|
@MusicCompatibility
|
||||||
class RemoveUpgradeButtonPatch : BytecodePatch(
|
class RemoveUpgradeButtonPatch : BytecodePatch(
|
||||||
@ -36,7 +36,7 @@ class RemoveUpgradeButtonPatch : BytecodePatch(
|
|||||||
val instructionList = """
|
val instructionList = """
|
||||||
invoke-interface { v0 }, Ljava/util/List;->size()I
|
invoke-interface { v0 }, Ljava/util/List;->size()I
|
||||||
move-result v1
|
move-result v1
|
||||||
const/4 v2, 0x3
|
const/4 v2, 0x4
|
||||||
invoke-interface {v0, v2}, Ljava/util/List;->remove(I)Ljava/lang/Object;
|
invoke-interface {v0, v2}, Ljava/util/List;->remove(I)Ljava/lang/Object;
|
||||||
iput-object v0, v$register, $pivotBarElementFieldRef
|
iput-object v0, v$register, $pivotBarElementFieldRef
|
||||||
""".toInstructions().toMutableList()
|
""".toInstructions().toMutableList()
|
||||||
|
Loading…
Reference in New Issue
Block a user