From 4f961298f6cb6417ee3f3d6f8ac7ce96594ed03b Mon Sep 17 00:00:00 2001 From: TheJeterLP Date: Wed, 20 Jul 2022 22:31:58 +0200 Subject: [PATCH] fix: autoplay still enabled when using patch --- .../youtube/layout/autoplaybutton/patch/HideAutoplayButton.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/autoplaybutton/patch/HideAutoplayButton.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/autoplaybutton/patch/HideAutoplayButton.kt index 38b5c3695..2328daf55 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/autoplaybutton/patch/HideAutoplayButton.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/autoplaybutton/patch/HideAutoplayButton.kt @@ -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