From 1b63898413b24693b0b737df29adcf9142963dfa Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sat, 27 Jan 2024 15:35:12 +0100 Subject: [PATCH] fix(Twitch): Correct patch resources to fix build --- .../twitch/ad/embedded/EmbeddedAdsPatch.kt | 2 +- .../resources/addresources/values/arrays.xml | 25 +++++++++++-------- .../resources/addresources/values/strings.xml | 16 ++++++------ 3 files changed, 22 insertions(+), 21 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/twitch/ad/embedded/EmbeddedAdsPatch.kt b/src/main/kotlin/app/revanced/patches/twitch/ad/embedded/EmbeddedAdsPatch.kt index afc2e367d6..4dd39f59fd 100644 --- a/src/main/kotlin/app/revanced/patches/twitch/ad/embedded/EmbeddedAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/twitch/ad/embedded/EmbeddedAdsPatch.kt @@ -32,7 +32,7 @@ object EmbeddedAdsPatch : BytecodePatch( AddResourcesPatch(this::class) SettingsPatch.PreferenceScreen.ADS.SURESTREAM.addPreferences( - ListPreference("revanced_block_embedded_ads") + ListPreference("revanced_block_embedded_ads", summaryKey = null) ) val result = CreateUsherClientFingerprint.result ?: throw CreateUsherClientFingerprint.exception diff --git a/src/main/resources/addresources/values/arrays.xml b/src/main/resources/addresources/values/arrays.xml index 1c7d050f8d..9ecc3239eb 100644 --- a/src/main/resources/addresources/values/arrays.xml +++ b/src/main/resources/addresources/values/arrays.xml @@ -74,25 +74,28 @@ - - - @string/revanced_deleted_messages_entry_1 - @string/revanced_deleted_messages_entry_2 - @string/revanced_deleted_messages_entry_3 + + + @string/revanced_show_deleted_messages_entry_1 + @string/revanced_show_deleted_messages_entry_2 + @string/revanced_show_deleted_messages_entry_3 - + hide spoiler cross-out + + + - - @string/revanced_hls_proxies_entry_1 - @string/revanced_hls_proxies_entry_2 - @string/revanced_hls_proxies_entry_3 + + @string/revanced_block_embedded_ads_entry_1 + @string/revanced_block_embedded_ads_entry_2 + @string/revanced_block_embedded_ads_entry_3 - + disabled luminous purpleadblock diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml index e312ffe5bc..a202ebdbd5 100644 --- a/src/main/resources/addresources/values/strings.xml +++ b/src/main/resources/addresources/values/strings.xml @@ -972,11 +972,9 @@ %s is unavailable. Ads may show. Try switching to another ad block service in settings. %s server returned an error. Ads may show. Try switching to another ad block service in settings. Block embedded video ads - Embedded video ads are blocked - Embedded video ads are unblocked - Disabled - Luminous proxy - PurpleAdBlock proxy + Disabled + Luminous proxy + PurpleAdBlock proxy Block video ads @@ -986,9 +984,9 @@ message deleted Show deleted messages - Do not show deleted messages - Hide deleted messages behind a spoiler - Show deleted messages as crossed-out text + Do not show deleted messages + Hide deleted messages behind a spoiler + Show deleted messages as crossed-out text Automatically claim Channel Points @@ -1000,7 +998,7 @@ Twitch debug mode is enabled (not recommended) Twitch debug mode is disabled - + ReVanced Settings Debug logging Debug logs are enabled