mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 21:27:43 +02:00
feat(YouTube - Hide feed flyout menu): Add Feed flyout menu filter type
setting
This commit is contained in:
@ -186,8 +186,15 @@ public class FeedPatch {
|
||||
String menuTitleString = menuTitleCharSequence.toString();
|
||||
|
||||
for (String filter : blockList) {
|
||||
if (menuTitleString.equals(filter) && !filter.isEmpty())
|
||||
return null;
|
||||
if (!filter.isEmpty()) {
|
||||
if (Settings.HIDE_FEED_FLYOUT_MENU_FILTER_TYPE.get()) {
|
||||
if (menuTitleString.contains(filter))
|
||||
return null;
|
||||
} else {
|
||||
if (menuTitleString.equals(filter))
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -114,6 +114,7 @@ public class Settings extends BaseSettings {
|
||||
|
||||
// PreferenceScreen: Feed - Flyout menu
|
||||
public static final BooleanSetting HIDE_FEED_FLYOUT_MENU = new BooleanSetting("revanced_hide_feed_flyout_menu", FALSE);
|
||||
public static final BooleanSetting HIDE_FEED_FLYOUT_MENU_FILTER_TYPE = new BooleanSetting("revanced_hide_feed_flyout_menu_filter_type", FALSE, true, parent(HIDE_FEED_FLYOUT_MENU));
|
||||
public static final StringSetting HIDE_FEED_FLYOUT_MENU_FILTER_STRINGS = new StringSetting("revanced_hide_feed_flyout_menu_filter_strings", "", true, parent(HIDE_FEED_FLYOUT_MENU));
|
||||
|
||||
// PreferenceScreen: Feed - Video filter
|
||||
|
Reference in New Issue
Block a user