From aafdb891b2f0f243cb2d997a38ab3e6a7b46aba8 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Sat, 28 Jan 2023 20:21:05 +0400 Subject: [PATCH] fix(youtube): resolve duplicate preference keys (#1550) --- .../copyvideourl/resource/patch/CopyVideoUrlResourcePatch.kt | 4 ++-- .../downloads/resource/patch/DownloadsResourcePatch.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/interaction/copyvideourl/resource/patch/CopyVideoUrlResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/interaction/copyvideourl/resource/patch/CopyVideoUrlResourcePatch.kt index 5cebcb3ff..de4a3c522 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/interaction/copyvideourl/resource/patch/CopyVideoUrlResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/interaction/copyvideourl/resource/patch/CopyVideoUrlResourcePatch.kt @@ -31,14 +31,14 @@ class CopyVideoUrlResourcePatch : ResourcePatch { StringResource("revanced_copy_video_url_title", "Copy video URL settings"), listOf( SwitchPreference( - "revanced_copy_video_url", + "revanced_copy_video_url_enabled", StringResource("revanced_copy_video_url_enabled_title", "Show copy video URL button"), true, StringResource("revanced_copy_video_url_enabled_summary_on", "Button is shown, click to copy video URL without timestamp"), StringResource("revanced_copy_video_url_enabled_summary_off", "Button is not shown") ), SwitchPreference( - "revanced_copy_video_url_timestamp", + "revanced_copy_video_url_timestamp_enabled", StringResource("revanced_copy_video_url_timestamp_enabled_title", "Show copy timestamp URL button"), true, StringResource("revanced_copy_video_url_timestamp_enabled_summary_on", "Button is shown, click to copy video URL with timestamp"), diff --git a/src/main/kotlin/app/revanced/patches/youtube/interaction/downloads/resource/patch/DownloadsResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/interaction/downloads/resource/patch/DownloadsResourcePatch.kt index 0ea6834dd..9589c4c74 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/interaction/downloads/resource/patch/DownloadsResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/interaction/downloads/resource/patch/DownloadsResourcePatch.kt @@ -30,7 +30,7 @@ class DownloadsResourcePatch : ResourcePatch { StringResource("revanced_downloads_title", "Download settings"), listOf( SwitchPreference( - "revanced_downloads", + "revanced_downloads_enabled", StringResource("revanced_downloads_enabled_title", "Show download button"), true, StringResource("revanced_downloads_enabled_summary_on", "Download button is shown"),