Skip to content

Commit

Permalink
fix(YouTube - Hide feed components): Hide carousel shelf not hiding…
Browse files Browse the repository at this point in the history
… in home feed in certain situations
  • Loading branch information
inotia00 authored and anddea committed Dec 17, 2024
1 parent 786bc36 commit 0c690b1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ private static boolean hideShelves(boolean playerActive, boolean searchBarActive
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);
}

Expand Down

0 comments on commit 0c690b1

Please sign in to comment.