mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-04-30 14:44:30 +02:00
fix(YouTube - Hide feed components): Hide carousel shelf
hiding in library in certain situations
This commit is contained in:
parent
2def0d4cc7
commit
4c24f4569c
@ -72,6 +72,10 @@ public final class CarouselShelfFilter extends Filter {
|
||||
if (selectedNavButton == NavigationButton.HOME && browseId.equals(BROWSE_ID_NOTIFICATION_INBOX)) {
|
||||
return true;
|
||||
}
|
||||
// Sometimes the browserId is empty. In this case, check the navigation button.
|
||||
if (browseId.isEmpty()) {
|
||||
return selectedNavButton != NavigationButton.LIBRARY;
|
||||
}
|
||||
return knownBrowseId.get().anyMatch(browseId::equals) || whitelistBrowseId.get().noneMatch(browseId::equals);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user