From 9025844a881ea063a7c107ae9d952c0b07a2b74e Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Mon, 22 Aug 2022 19:13:57 +0200 Subject: [PATCH] fix: default values for settings --- .../ad/general/bytecode/patch/GeneralBytecodeAdsPatch.kt | 8 ++++---- .../patches/youtube/ad/video/patch/VideoAdsPatch.kt | 8 ++++---- .../layout/createbutton/patch/CreateButtonRemoverPatch.kt | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/ad/general/bytecode/patch/GeneralBytecodeAdsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/ad/general/bytecode/patch/GeneralBytecodeAdsPatch.kt index cb3d26a07..2e5a28083 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/ad/general/bytecode/patch/GeneralBytecodeAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/ad/general/bytecode/patch/GeneralBytecodeAdsPatch.kt @@ -73,11 +73,11 @@ class GeneralBytecodeAdsPatch : BytecodePatch() { override fun execute(data: BytecodeData): PatchResult { SettingsPatch.PreferenceScreen.ADS.addPreferences( SwitchPreference( - "revanced_home_ads_enabled", - StringResource("revanced_home_ads_enabled_title", "Hide home ads"), + "revanced_home_ads_removal", + StringResource("revanced_home_ads_removal_title", "Remove home ads"), true, - StringResource("revanced_home_ads_enabled_summary_on", "Home ads are shown"), - StringResource("revanced_home_ads_enabled_summary_off", "Home ads are hidden") + StringResource("revanced_home_ads_removal_summary_on", "Home ads are hidden"), + StringResource("revanced_home_ads_removal_summary_off", "Home ads are shown") ), SwitchPreference( "revanced_adremover_ad_removal", diff --git a/src/main/kotlin/app/revanced/patches/youtube/ad/video/patch/VideoAdsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/ad/video/patch/VideoAdsPatch.kt index e116a520c..334acc40e 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/ad/video/patch/VideoAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/ad/video/patch/VideoAdsPatch.kt @@ -33,11 +33,11 @@ class VideoAdsPatch : BytecodePatch( override fun execute(data: BytecodeData): PatchResult { SettingsPatch.PreferenceScreen.ADS.addPreferences( SwitchPreference( - "revanced_video_ads_enabled", - StringResource("revanced_video_ads_enabled_title", "Hide video ads"), + "revanced_video_ads_removal", + StringResource("revanced_video_ads_removal_title", "Hide video ads"), true, - StringResource("revanced_video_ads_enabled_summary_on", "Video ads are hidden"), - StringResource("revanced_video_ads_enabled_summary_off", "Video ads are shown") + StringResource("revanced_video_ads_removal_summary_on", "Video ads are hidden"), + StringResource("revanced_video_ads_removal_summary_off", "Video ads are shown") ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/createbutton/patch/CreateButtonRemoverPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/createbutton/patch/CreateButtonRemoverPatch.kt index b3e3a5541..68d17912f 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/createbutton/patch/CreateButtonRemoverPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/createbutton/patch/CreateButtonRemoverPatch.kt @@ -41,8 +41,8 @@ class CreateButtonRemoverPatch : BytecodePatch( "revanced_create_button_enabled", StringResource("revanced_create_button_enabled_title", "Show create button"), false, - StringResource("revanced_create_button_summary_on", "Create button is shown."), - StringResource("revanced_create_button_summary_off", "Create button is hidden.") + StringResource("revanced_create_button_summary_on", "Create button is shown"), + StringResource("revanced_create_button_summary_off", "Create button is hidden") ) )