From bc89e72fba48b41f35d63cd19a56ed7ea0ec8dc4 Mon Sep 17 00:00:00 2001 From: inotia00 Date: Sat, 24 Jun 2023 14:49:17 +0900 Subject: [PATCH] feat(youtube/overlay-buttons): remove `Always auto repeat` toggle from settings --- .../youtube/overlaybutton/autorepeat/patch/AutoRepeatPatch.kt | 4 ++-- src/main/resources/youtube/settings/host/values/strings.xml | 3 --- src/main/resources/youtube/settings/xml/revanced_prefs.xml | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/overlaybutton/autorepeat/patch/AutoRepeatPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/overlaybutton/autorepeat/patch/AutoRepeatPatch.kt index 923412126..36484b0a3 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/overlaybutton/autorepeat/patch/AutoRepeatPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/overlaybutton/autorepeat/patch/AutoRepeatPatch.kt @@ -65,7 +65,7 @@ class AutoRepeatPatch : BytecodePatch( addInstructionsWithLabels( targetIndex + 1, """ - invoke-static {}, $UTILS_PATH/EnableAutoRepeatPatch;->shouldAutoRepeat()Z + invoke-static {}, $UTILS_PATH/AlwaysRepeatPatch;->shouldAlwaysRepeat()Z move-result v$dummyRegister if-nez v$dummyRegister, :bypass invoke-virtual {v$registerC, v$registerD}, $targetReference @@ -87,7 +87,7 @@ class AutoRepeatPatch : BytecodePatch( addInstructions( index + 1, """ - invoke-static {v$register}, $UTILS_PATH/EnableAutoRepeatPatch;->enableAutoRepeat(Z)Z + invoke-static {v$register}, $UTILS_PATH/AlwaysRepeatPatch;->enableAlwaysRepeat(Z)Z move-result v0 """ ) diff --git a/src/main/resources/youtube/settings/host/values/strings.xml b/src/main/resources/youtube/settings/host/values/strings.xml index a0cf49508..c9b06ce1b 100644 --- a/src/main/resources/youtube/settings/host/values/strings.xml +++ b/src/main/resources/youtube/settings/host/values/strings.xml @@ -85,9 +85,6 @@ Downloader package name Default downloader related settings Downloader settings - Always auto repeat is disabled - Always auto repeat is enabled - Always auto repeat Compact controls overlay is disabled Compact controls overlay is enabled Enable compact controls overlay diff --git a/src/main/resources/youtube/settings/xml/revanced_prefs.xml b/src/main/resources/youtube/settings/xml/revanced_prefs.xml index a41cbc0af..f9bdeac67 100644 --- a/src/main/resources/youtube/settings/xml/revanced_prefs.xml +++ b/src/main/resources/youtube/settings/xml/revanced_prefs.xml @@ -449,7 +449,6 @@