From 7b70b8555b4596e28a4fd0e7fcb3dc43bf6db041 Mon Sep 17 00:00:00 2001 From: TheJeterLP Date: Wed, 20 Jul 2022 22:58:48 +0200 Subject: [PATCH] refactor: cleanup code --- .../youtube/layout/autoplaybutton/patch/HideAutoplayButton.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 54d2d566..7054e242 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 @@ -54,9 +54,9 @@ class HideAutoplayButton : BytecodePatch( //force disable autoplay since it's hard to do without the button autonavInformerMethod.addInstructions( 0, """ - invoke-static {}, Lapp/revanced/integrations/patches/HideAutoplayButtonPatch;->isButtonHidden()Z + invoke-static {}, Lapp/revanced/integrations/patches/HideAutoplayButtonPatch;->isButtonShown()Z move-result v0 - if-eqz v0, :hidden + if-nez v0, :hidden const/4 v0, 0x0 return v0 :hidden