From 00a36941f392425869cd2212767d2d4f31d4622f Mon Sep 17 00:00:00 2001 From: inotia00 Date: Fri, 4 Aug 2023 05:24:28 +0900 Subject: [PATCH] feat(music/enable-sleep-timer): forcibly disable when the switch is off --- .../patches/music/layout/sleeptimer/patch/SleepTimerPatch.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/patches/music/layout/sleeptimer/patch/SleepTimerPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/sleeptimer/patch/SleepTimerPatch.kt index 9b7971fa7..a5b59c662 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/sleeptimer/patch/SleepTimerPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/sleeptimer/patch/SleepTimerPatch.kt @@ -37,7 +37,7 @@ class SleepTimerPatch : BytecodePatch( addInstructions( insertIndex, """ - invoke-static {v$targetRegister}, $MUSIC_LAYOUT->enableSleepTimer(Z)Z + invoke-static {}, $MUSIC_LAYOUT->enableSleepTimer()Z move-result v$targetRegister """ )