Skip to content

Commit

Permalink
fix(YouTube - Shorts components): Hide Shorts shelves not hiding in…
Browse files Browse the repository at this point in the history
… home feed in certain situations
  • Loading branch information
inotia00 authored and anddea committed Dec 17, 2024
1 parent 0c690b1 commit 3481e01
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,14 @@ private static boolean shouldHideShortsFeedItems(boolean playerActive, boolean s
return false;
}

// Unknown tab, treat the same as home.
if (selectedNavButton == null) {
return hideHomeAndRelatedVideos; // Unknown tab, treat the same as home.
return hideHomeAndRelatedVideos;
}

// Fixes a very rare bug in home.
if (selectedNavButton == NavigationButton.HOME && browseId.equals(BROWSE_ID_NOTIFICATION_INBOX)) {
return true;
}

switch (browseId) {
Expand Down

0 comments on commit 3481e01

Please sign in to comment.