mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-06-13 05:37:41 +02:00
fix(YouTube - Hide layout components): Do not hide Movie/Courses start page content if 'Hide horizontal shelves' is enabled
This commit is contained in:
@ -462,6 +462,12 @@ public final class LayoutComponentsFilter extends Filter {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Do not hide if the navigation back button is visible,
|
||||||
|
// otherwise the content shelves in the YouTube Movie/Courses pages is hidden.
|
||||||
|
if (NavigationBar.isBackButtonVisible()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Check navigation button last.
|
// Check navigation button last.
|
||||||
// Only filter if the library tab is not selected.
|
// Only filter if the library tab is not selected.
|
||||||
// This check is important as the shelf layout is used for the library tab playlists.
|
// This check is important as the shelf layout is used for the library tab playlists.
|
||||||
|
Reference in New Issue
Block a user