fix: Do not always hide the component

This commit is contained in:
oSumAtrIX 2023-10-02 22:15:29 +02:00
parent 25f73eb3a9
commit 3d0fc1d610
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -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);
}