From 4997bde26c851d20c4040290ed72a103483ddbbd Mon Sep 17 00:00:00 2001
From: inotia00 <108592928+inotia00@users.noreply.github.com>
Date: Fri, 20 Oct 2023 09:34:38 +0900
Subject: [PATCH] fix(YouTube/Disable haptic feedback): separate the `Disable
seek undo haptic feedback` setting from the `Disable seek haptic feedback`
setting
---
.../player/hapticfeedback/HapticFeedBackPatch.kt | 2 +-
.../youtube/settings/host/values/strings.xml | 11 +++--------
.../resources/youtube/settings/xml/revanced_prefs.xml | 9 +++++----
3 files changed, 9 insertions(+), 13 deletions(-)
diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/hapticfeedback/HapticFeedBackPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/hapticfeedback/HapticFeedBackPatch.kt
index d0656e571..7fbe00fe9 100644
--- a/src/main/kotlin/app/revanced/patches/youtube/player/hapticfeedback/HapticFeedBackPatch.kt
+++ b/src/main/kotlin/app/revanced/patches/youtube/player/hapticfeedback/HapticFeedBackPatch.kt
@@ -60,7 +60,7 @@ object HapticFeedBackPatch : BytecodePatch(
arrayOf(
SeekHapticsFingerprint to "disableSeekVibrate",
- SeekUndoHapticsFingerprint to "disableSeekVibrate",
+ SeekUndoHapticsFingerprint to "disableSeekUndoVibrate",
ScrubbingHapticsFingerprint to "disableScrubbingVibrate",
MarkerHapticsFingerprint to "disableChapterVibrate",
ZoomHapticsFingerprint to "disableZoomVibrate"
diff --git a/src/main/resources/youtube/settings/host/values/strings.xml b/src/main/resources/youtube/settings/host/values/strings.xml
index 37b00c628..fd52dae1e 100644
--- a/src/main/resources/youtube/settings/host/values/strings.xml
+++ b/src/main/resources/youtube/settings/host/values/strings.xml
@@ -64,17 +64,12 @@
Default playback speed is enabled in live stream
Default playback speed is disabled in live stream
Disable playback speed in live stream
- Chapters haptic feedback is enabled
- Chapters haptic feedback is disabled
+ Haptic feedback is enabled
+ Haptic feedback is disabled
Disable chapters haptic feedback
- Scrubbing haptic feedback is enabled
- Scrubbing haptic feedback is disabled
Disable scrubbing haptic feedback
- Seek haptic feedback is enabled
- Seek haptic feedback is disabled
Disable seek haptic feedback
- Zoom haptic feedback is enabled
- Zoom haptic feedback is disabled
+ Disable seek undo haptic feedback
Disable zoom haptic feedback
Auto HDR brightness is enabled
Auto HDR brightness is disabled
diff --git a/src/main/resources/youtube/settings/xml/revanced_prefs.xml b/src/main/resources/youtube/settings/xml/revanced_prefs.xml
index d2d8a1b7c..de04a1a39 100644
--- a/src/main/resources/youtube/settings/xml/revanced_prefs.xml
+++ b/src/main/resources/youtube/settings/xml/revanced_prefs.xml
@@ -549,10 +549,11 @@
+
+
+
+
+ SETTINGS: DISABLE_HAPTIC_FEEDBACK -->