From c3bfa77d62b15dedfed8f697583f2f0805f0c2c1 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Thu, 18 Apr 2024 22:40:26 +0400 Subject: [PATCH] fix(YouTube - Hide keyword content): Correctly hide content in the subscription tab --- .../youtube/patches/components/KeywordContentFilter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/app/revanced/integrations/youtube/patches/components/KeywordContentFilter.java b/app/src/main/java/app/revanced/integrations/youtube/patches/components/KeywordContentFilter.java index 95b9f466..acb9c9b2 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/patches/components/KeywordContentFilter.java +++ b/app/src/main/java/app/revanced/integrations/youtube/patches/components/KeywordContentFilter.java @@ -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; }