mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2024-11-10 01:01:56 +01: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
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.formats.Instruction35c
|
|||
|
||||
|
||||
@Patch
|
||||
@Name("Upgrade button remover")
|
||||
@Name("Remove upgrade button")
|
||||
@Description("Removes the upgrade tab from the pivot bar.")
|
||||
@MusicCompatibility
|
||||
class RemoveUpgradeButtonPatch : BytecodePatch(
|
||||
|
@ -36,7 +36,7 @@ class RemoveUpgradeButtonPatch : BytecodePatch(
|
|||
val instructionList = """
|
||||
invoke-interface { v0 }, Ljava/util/List;->size()I
|
||||
move-result v1
|
||||
const/4 v2, 0x3
|
||||
const/4 v2, 0x4
|
||||
invoke-interface {v0, v2}, Ljava/util/List;->remove(I)Ljava/lang/Object;
|
||||
iput-object v0, v$register, $pivotBarElementFieldRef
|
||||
""".toInstructions().toMutableList()
|
||||
|
|
Loading…
Reference in a new issue