From 7004b30ef9329f02cb61973d65410f9410f1e05c Mon Sep 17 00:00:00 2001 From: Canny <94744045+Canny1913@users.noreply.github.com> Date: Tue, 30 Aug 2022 19:35:41 +0300 Subject: [PATCH] fix: don't overwrite register in `compact-header` patch (#406) --- .../music/layout/compactheader/patch/CompactHeaderPatch.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/music/layout/compactheader/patch/CompactHeaderPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/compactheader/patch/CompactHeaderPatch.kt index e046b453a..f58d8875f 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/compactheader/patch/CompactHeaderPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/compactheader/patch/CompactHeaderPatch.kt @@ -31,8 +31,8 @@ class CompactHeaderPatch : BytecodePatch( val register = (method.implementation!!.instructions[insertIndex - 1] as BuilderInstruction11x).registerA method.addInstructions( insertIndex, """ - const/16 v0, 0x8 - invoke-virtual {v${register}, v0}, Landroid/view/View;->setVisibility(I)V + const/16 v2, 0x8 + invoke-virtual {v${register}, v2}, Landroid/view/View;->setVisibility(I)V """ )