Skip to content

Commit

Permalink
fix(YouTube - Hide keyword content): Correctly hide content in the su…
Browse files Browse the repository at this point in the history
…bscription tab
  • Loading branch information
LisoUseInAIKyrios committed Apr 18, 2024
1 parent 3ff5dcd commit c3bfa77
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -118,14 +118,15 @@ private static boolean hideKeywordSettingIsActive() {
// 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();
}

// 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;
}
Expand Down

0 comments on commit c3bfa77

Please sign in to comment.