diff --git a/app/src/main/java/eu/kanade/presentation/library/components/LibraryToolbar.kt b/app/src/main/java/eu/kanade/presentation/library/components/LibraryToolbar.kt index 90ae523e7b..f959c28dc8 100644 --- a/app/src/main/java/eu/kanade/presentation/library/components/LibraryToolbar.kt +++ b/app/src/main/java/eu/kanade/presentation/library/components/LibraryToolbar.kt @@ -47,17 +47,17 @@ fun LibraryToolbar( onClickFilter: () -> Unit, onClickRefresh: () -> Unit, ) = when { - state.searchQuery != null -> LibrarySearchToolbar( - searchQuery = state.searchQuery!!, - onChangeSearchQuery = { state.searchQuery = it }, - onClickCloseSearch = { state.searchQuery = null }, - ) state.selectionMode -> LibrarySelectionToolbar( state = state, onClickUnselectAll = onClickUnselectAll, onClickSelectAll = onClickSelectAll, onClickInvertSelection = onClickInvertSelection, ) + state.searchQuery != null -> LibrarySearchToolbar( + searchQuery = state.searchQuery!!, + onChangeSearchQuery = { state.searchQuery = it }, + onClickCloseSearch = { state.searchQuery = null }, + ) else -> LibraryRegularToolbar( title = title, hasFilters = state.hasActiveFilters,