From 2024e0105786b5f786493a29910b586931052529 Mon Sep 17 00:00:00 2001
From: inotia00 <108592928+inotia00@users.noreply.github.com>
Date: Tue, 17 Oct 2023 15:59:37 +0900
Subject: [PATCH] fix(YouTube/Hide layout components): move `Hide join button`
to the `Channel bar` subpreference in the `Bottom player` category
---
.../patches/youtube/general/layout/LayoutComponentsPatch.kt | 2 ++
src/main/resources/youtube/settings/host/values/strings.xml | 1 +
src/main/resources/youtube/settings/xml/revanced_prefs.xml | 5 ++++-
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/layout/LayoutComponentsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/layout/LayoutComponentsPatch.kt
index 2778c637c..19c54a135 100644
--- a/src/main/kotlin/app/revanced/patches/youtube/general/layout/LayoutComponentsPatch.kt
+++ b/src/main/kotlin/app/revanced/patches/youtube/general/layout/LayoutComponentsPatch.kt
@@ -47,10 +47,12 @@ object LayoutComponentsPatch : BytecodePatch() {
*/
SettingsPatch.addPreference(
arrayOf(
+ "PREFERENCE: BOTTOM_PLAYER_SETTINGS",
"PREFERENCE: GENERAL_SETTINGS",
"PREFERENCE: PLAYER_SETTINGS",
"SETTINGS: HIDE_AUDIO_TRACK_BUTTON",
+ "SETTINGS: HIDE_CHANNEL_BAR_JOIN_BUTTON",
"SETTINGS: HIDE_LAYOUT_COMPONENTS"
)
)
diff --git a/src/main/resources/youtube/settings/host/values/strings.xml b/src/main/resources/youtube/settings/host/values/strings.xml
index 2bc178e98..eb565781f 100644
--- a/src/main/resources/youtube/settings/host/values/strings.xml
+++ b/src/main/resources/youtube/settings/host/values/strings.xml
@@ -38,6 +38,7 @@
Current homepage: Home
Current homepage: Subscriptions
Change homepage to subscriptions
+ Channel bar
Comments
Time Stamp copied to clipboard
Filter component names by line-seperated
diff --git a/src/main/resources/youtube/settings/xml/revanced_prefs.xml b/src/main/resources/youtube/settings/xml/revanced_prefs.xml
index b492c94cc..533fa7f1f 100644
--- a/src/main/resources/youtube/settings/xml/revanced_prefs.xml
+++ b/src/main/resources/youtube/settings/xml/revanced_prefs.xml
@@ -41,6 +41,10 @@
+
+