fix: Filter search if the library tab is open

This commit is contained in:
LisoUseInAIKyrios 2024-04-05 20:55:15 +04:00
parent a7814f1f2e
commit 1733328480

View File

@ -35,6 +35,8 @@ public final class SuggestionsShelfFilter extends Filter {
return !NavigationBar.NavigationButton.libraryOrYouTabIsSelected()
// But if the player is opened while library is selected,
// then still filter any recommendations below the player.
|| PlayerType.getCurrent().isMaximizedOrFullscreen();
|| PlayerType.getCurrent().isMaximizedOrFullscreen()
// Or if the search is active while library is selected, then also filter.
|| NavigationBar.isSearchBarActive();
}
}