From d26c4233031fd418eb37c8f05e9bc1857e0572e6 Mon Sep 17 00:00:00 2001 From: bogadana <30848157+bogadana@users.noreply.github.com> Date: Sat, 25 Jun 2022 02:15:58 +0200 Subject: [PATCH] fix: put back proper variable (#61) --- .../layout/createbutton/patch/CreateButtonRemoverPatch.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/createbutton/patch/CreateButtonRemoverPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/createbutton/patch/CreateButtonRemoverPatch.kt index 5e126143..19311b5e 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/createbutton/patch/CreateButtonRemoverPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/createbutton/patch/CreateButtonRemoverPatch.kt @@ -54,7 +54,7 @@ class CreateButtonRemoverPatch : BytecodePatch( // Hide the button view via proxy by passing it to the hideCreateButton method result.method.addInstruction( - result.scanResult.endIndex + 1, + moveResultIndex + 1, "invoke-static { v${moveResultInstruction.registerA} }, Lapp/revanced/integrations/patches/HideCreateButtonPatch;->hideCreateButton(Landroid/view/View;)V" )