mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-12-01 00:02:55 +01:00
fix: Do not always hide the component
This commit is contained in:
parent
25f73eb3a9
commit
3d0fc1d610
@ -211,7 +211,8 @@ public final class LayoutComponentsFilter extends Filter {
|
|||||||
if (matchedGroup != custom && exceptions.matches(path))
|
if (matchedGroup != custom && exceptions.matches(path))
|
||||||
return false; // Exceptions are not filtered.
|
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);
|
return super.isFiltered(identifier, path, protobufBufferArray, matchedList, matchedGroup, matchedIndex);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user