From 83d37d047c8b2e9ed6b6e6b6fea36c6398a99068 Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Mon, 25 Mar 2024 09:47:20 +0900 Subject: [PATCH] feat(YouTube/Swipe controls): apply fingerprint compatible with the wider version --- .../youtube/swipe/controls/SwipeControlsPatch.kt | 11 ++++++++++- .../resources/youtube/settings/xml/revanced_prefs.xml | 5 +++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/swipe/controls/SwipeControlsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/swipe/controls/SwipeControlsPatch.kt index 7e53c983f..72352d37b 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/swipe/controls/SwipeControlsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/swipe/controls/SwipeControlsPatch.kt @@ -131,7 +131,16 @@ object SwipeControlsPatch : BytecodePatch( """, ExternalLabel("default", getInstruction(0)) ) } - } ?: throw HDRBrightnessFingerprint.exception + + /** + * Add settings + */ + SettingsPatch.addPreference( + arrayOf( + "SETTINGS: DISABLE_HDR_BRIGHTNESS" + ) + ) + } /** * Add settings diff --git a/src/main/resources/youtube/settings/xml/revanced_prefs.xml b/src/main/resources/youtube/settings/xml/revanced_prefs.xml index ddc0b66c7..2728e71a2 100644 --- a/src/main/resources/youtube/settings/xml/revanced_prefs.xml +++ b/src/main/resources/youtube/settings/xml/revanced_prefs.xml @@ -729,9 +729,10 @@ - + SETTINGS: SWIPE_CONTROLS --> + + SETTINGS: DISABLE_HDR_BRIGHTNESS -->