mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-03 16:14:28 +02:00
fix(YouTube - Hide feed components): Hide carousel shelf
not hiding in home feed in certain situations
This commit is contained in:
parent
831d2a1e76
commit
d97447f7a8
@ -68,6 +68,10 @@ public final class CarouselShelfFilter extends Filter {
|
|||||||
if (selectedNavButton == null) {
|
if (selectedNavButton == null) {
|
||||||
return true;
|
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);
|
return knownBrowseId.get().anyMatch(browseId::equals) || whitelistBrowseId.get().noneMatch(browseId::equals);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user