fix: autoplay still enabled when using patch

This commit is contained in:
TheJeterLP 2022-07-20 22:31:58 +02:00
parent 5ff9d67e9d
commit 4f961298f6
No known key found for this signature in database
GPG key ID: D8CFD6FCF7215E6C

View file

@ -73,7 +73,7 @@ class HideAutoplayButton : BytecodePatch(
method.removeInstruction(index)
method.addInstructions(
index, """
invoke-static {}, Lapp/revanced/integrations/patches/HideAutoplayButtonPatch;->isButtonShown()Z
invoke-static {}, Lapp/revanced/integrations/patches/HideAutoplayButtonPatch;->isButtonHidden()Z
move-result v11
if-eqz v11, :hidebutton
invoke-virtual {v${insn.registerC}, v${insn.registerD}, v${insn.registerE}}, $methodToCall