From e6dcb55382441f03c4b1322ccd652a22db104254 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Tue, 10 Jan 2023 13:53:57 +0400 Subject: [PATCH] fix(youtube/hide-info-cards): allow toggling visibility of info-cards (#1464) --- .../youtube/layout/hideinfocards/patch/HideInfocardsPatch.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hideinfocards/patch/HideInfocardsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hideinfocards/patch/HideInfocardsPatch.kt index 9d5f0409b..4fc72341d 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hideinfocards/patch/HideInfocardsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hideinfocards/patch/HideInfocardsPatch.kt @@ -45,7 +45,7 @@ class HideInfocardsPatch : BytecodePatch( "Landroid/view/View;->setVisibility(I)V") } - replaceInstruction( + addInstructions( invokeInstructionIndex, "invoke-static {v${(instruction(invokeInstructionIndex) as? BuilderInstruction35c)?.registerC}}," + " Lapp/revanced/integrations/patches/HideInfocardsPatch;->hideInfocardsIncognito(Landroid/view/View;)V"