From 3d0fc1d610cdf50bb7cc4687d899e0acbf3fb83e Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Mon, 2 Oct 2023 22:15:29 +0200 Subject: [PATCH] fix: Do not always hide the component --- .../patches/components/LayoutComponentsFilter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/app/revanced/integrations/patches/components/LayoutComponentsFilter.java b/app/src/main/java/app/revanced/integrations/patches/components/LayoutComponentsFilter.java index e197d4c8..b2d62651 100644 --- a/app/src/main/java/app/revanced/integrations/patches/components/LayoutComponentsFilter.java +++ b/app/src/main/java/app/revanced/integrations/patches/components/LayoutComponentsFilter.java @@ -211,7 +211,8 @@ public final class LayoutComponentsFilter extends Filter { if (matchedGroup != custom && exceptions.matches(path)) return false; // Exceptions are not filtered. - if (matchedGroup == searchResultShelfHeader && matchedIndex == 0) return true; + // TODO: This also hides the feed Shorts shelf header + if (matchedGroup == searchResultShelfHeader && matchedIndex != 0) return false; return super.isFiltered(identifier, path, protobufBufferArray, matchedList, matchedGroup, matchedIndex); }