fix(YouTube - Hide feed components): Hide carousel shelf not hiding in home feed in certain situations

This commit is contained in:
inotia00 2024-12-16 13:05:01 +09:00
parent 831d2a1e76
commit d97447f7a8

View File

@ -68,6 +68,10 @@ public final class CarouselShelfFilter extends Filter {
if (selectedNavButton == null) {
return true;
}
// Fixes a very rare bug in home.
if (selectedNavButton == NavigationButton.HOME && browseId.equals(BROWSE_ID_NOTIFICATION_INBOX)) {
return true;
}
return knownBrowseId.get().anyMatch(browseId::equals) || whitelistBrowseId.get().noneMatch(browseId::equals);
}