From c22871868d9201a4ceb6f6e632ee9d4ffcd35ee2 Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Fri, 26 Jul 2024 19:48:55 +0900 Subject: [PATCH] feat(YouTube Music/Hide layout components): add `Hide settings menu` setting https://github.com/inotia00/ReVanced_Extended/issues/1899 --- .../app/revanced/integrations/music/settings/Settings.java | 1 + .../music/settings/preference/ReVancedPreferenceFragment.java | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/app/revanced/integrations/music/settings/Settings.java b/app/src/main/java/app/revanced/integrations/music/settings/Settings.java index 42ada1689f..d388470694 100644 --- a/app/src/main/java/app/revanced/integrations/music/settings/Settings.java +++ b/app/src/main/java/app/revanced/integrations/music/settings/Settings.java @@ -207,6 +207,7 @@ public class Settings extends BaseSettings { CUSTOM_PLAYBACK_SPEEDS.key, EXTERNAL_DOWNLOADER_PACKAGE_NAME.key, HIDE_ACCOUNT_MENU_FILTER_STRINGS.key, + HIDE_SETTINGS_MENU_FILTER_STRINGS.key, SB_API_URL.key, SETTINGS_IMPORT_EXPORT.key, SPOOF_APP_VERSION_TARGET.key, diff --git a/app/src/main/java/app/revanced/integrations/music/settings/preference/ReVancedPreferenceFragment.java b/app/src/main/java/app/revanced/integrations/music/settings/preference/ReVancedPreferenceFragment.java index f609c8e755..23a7fb949f 100644 --- a/app/src/main/java/app/revanced/integrations/music/settings/preference/ReVancedPreferenceFragment.java +++ b/app/src/main/java/app/revanced/integrations/music/settings/preference/ReVancedPreferenceFragment.java @@ -6,6 +6,7 @@ import static app.revanced.integrations.music.settings.Settings.CUSTOM_PLAYBACK_SPEEDS; import static app.revanced.integrations.music.settings.Settings.EXTERNAL_DOWNLOADER_PACKAGE_NAME; import static app.revanced.integrations.music.settings.Settings.HIDE_ACCOUNT_MENU_FILTER_STRINGS; +import static app.revanced.integrations.music.settings.Settings.HIDE_SETTINGS_MENU_FILTER_STRINGS; import static app.revanced.integrations.music.settings.Settings.OPTIONAL_SPONSOR_BLOCK_SETTINGS_PREFIX; import static app.revanced.integrations.music.settings.Settings.SB_API_URL; import static app.revanced.integrations.music.settings.Settings.SETTINGS_IMPORT_EXPORT; @@ -128,7 +129,8 @@ public void onCreate(Bundle savedInstanceState) { } else if (settings.equals(BYPASS_IMAGE_REGION_RESTRICTIONS_DOMAIN) || settings.equals(CUSTOM_FILTER_STRINGS) || settings.equals(CUSTOM_PLAYBACK_SPEEDS) - || settings.equals(HIDE_ACCOUNT_MENU_FILTER_STRINGS)) { + || settings.equals(HIDE_ACCOUNT_MENU_FILTER_STRINGS) + || settings.equals(HIDE_SETTINGS_MENU_FILTER_STRINGS)) { ResettableEditTextPreference.showDialog(mActivity, stringSetting); } else if (settings.equals(EXTERNAL_DOWNLOADER_PACKAGE_NAME)) { ExternalDownloaderPreference.showDialog(mActivity);