From 0684ab5f183631de5720352049cfd293daa58eb0 Mon Sep 17 00:00:00 2001
From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com>
Date: Mon, 9 Sep 2024 03:21:22 -0400
Subject: [PATCH] feat(YouTube): Add donation link to settings about screen
(#3626)
---
.../misc/settings/SettingsResourcePatch.kt | 2 --
.../resources/addresources/values/strings.xml | 17 ++++++++---------
.../layout/revanced_settings_with_toolbar.xml | 2 +-
3 files changed, 9 insertions(+), 12 deletions(-)
diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/settings/SettingsResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/settings/SettingsResourcePatch.kt
index 2783a0266d..28833df23c 100644
--- a/src/main/kotlin/app/revanced/patches/youtube/misc/settings/SettingsResourcePatch.kt
+++ b/src/main/kotlin/app/revanced/patches/youtube/misc/settings/SettingsResourcePatch.kt
@@ -28,8 +28,6 @@ object SettingsResourcePatch : BaseSettingsResourcePatch(
override fun execute(context: ResourceContext) {
super.execute(context)
- AddResourcesPatch(this::class)
-
// Used for a fingerprint from SettingsPatch.
appearanceStringId = ResourceMappingPatch["string", "app_theme_appearance_dark"]
diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml
index 21afab3915..711837778e 100644
--- a/src/main/resources/addresources/values/strings.xml
+++ b/src/main/resources/addresources/values/strings.xml
@@ -53,6 +53,14 @@ This is because Crowdin requires temporarily flattening this file and removing t
ReVanced settings reset to default
Imported %d settings
Import failed: %s
+ Import / Export
+ Import / Export ReVanced settings
+
+ You are using ReVanced Patches version <i>%s</i>
+ Note
+ This version is a pre-release and you may experience unexpected issues
+ Official links
+ Donate
@@ -65,15 +73,6 @@ This is because Crowdin requires temporarily flattening this file and removing t
-
- ReVanced
- You are using ReVanced Patches version <i>%s</i>
- Note
- This version is a pre-release and you may experience unexpected issues
- Official links
- Import / Export
- Import / Export ReVanced settings
-
About
Ads
diff --git a/src/main/resources/settings/layout/revanced_settings_with_toolbar.xml b/src/main/resources/settings/layout/revanced_settings_with_toolbar.xml
index c78967c615..1c91a9bc65 100644
--- a/src/main/resources/settings/layout/revanced_settings_with_toolbar.xml
+++ b/src/main/resources/settings/layout/revanced_settings_with_toolbar.xml
@@ -21,7 +21,7 @@
android:layout_height="?attr/actionBarSize"
android:background="?attr/ytBrandBackgroundSolid"
app:navigationIcon="@drawable/yt_outline_arrow_left_black_24"
- app:title="@string/revanced_settings" />
+ app:title="@string/revanced_settings_title" />