fix(YouTube - Hide keyword content): Correctly hide content in the subscription tab

This commit is contained in:
LisoUseInAIKyrios 2024-04-18 22:40:26 +04:00
parent 3ff5dcd05f
commit c3bfa77d62
1 changed files with 2 additions and 1 deletions

View File

@ -118,6 +118,7 @@ final class KeywordContentFilter extends Filter {
// For now, consider the under video results the same as the home feed.
return Settings.HIDE_KEYWORD_CONTENT_HOME.get();
}
// Must check second, as search can be from any tab.
if (NavigationBar.isSearchBarActive()) {
return Settings.HIDE_KEYWORD_CONTENT_SEARCH.get();
@ -125,7 +126,7 @@ final class KeywordContentFilter extends Filter {
// Avoid checking navigation button status if all other settings are off.
final boolean hideHome = Settings.HIDE_KEYWORD_CONTENT_HOME.get();
final boolean hideSubscriptions = Settings.HIDE_SUBSCRIPTIONS_BUTTON.get();
final boolean hideSubscriptions = Settings.HIDE_KEYWORD_CONTENT_SUBSCRIPTIONS.get();
if (!hideHome && !hideSubscriptions) {
return false;
}