Skip to content

Commit

Permalink
feat(YouTube Music/Hide layout components): add Hide settings menu
Browse files Browse the repository at this point in the history
  • Loading branch information
inotia00 committed Jul 26, 2024
1 parent 3536c9a commit c228718
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit c228718

Please sign in to comment.