From 939a40314b968172a7db291860211f51301498c3 Mon Sep 17 00:00:00 2001 From: inotia00 Date: Fri, 4 Aug 2023 05:21:54 +0900 Subject: [PATCH] feat(music/enable-new-layout): forcibly disable when the switch is off --- .../patches/music/layout/newlayout/patch/NewLayoutPatch.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/patches/music/layout/newlayout/patch/NewLayoutPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/newlayout/patch/NewLayoutPatch.kt index 1cc465504..63adfefb7 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/newlayout/patch/NewLayoutPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/newlayout/patch/NewLayoutPatch.kt @@ -37,7 +37,7 @@ class NewLayoutPatch : BytecodePatch( addInstructions( insertIndex, """ - invoke-static {v$targetRegister}, $MUSIC_LAYOUT->enableNewLayout(Z)Z + invoke-static {}, $MUSIC_LAYOUT->enableNewLayout()Z move-result v$targetRegister """ )