Fix number of items not updating when Show category tabs is off (#7644)
(cherry picked from commit e513487caac5ef8d7e1b5a60db60291ee8ec5cba)
This commit is contained in:
parent
758cf63024
commit
e21badf48c
@ -914,7 +914,7 @@ class LibraryPresenter(
|
|||||||
val defaultTitle = stringResource(id = R.string.label_library)
|
val defaultTitle = stringResource(id = R.string.label_library)
|
||||||
val default = remember { LibraryToolbarTitle(defaultTitle) }
|
val default = remember { LibraryToolbarTitle(defaultTitle) }
|
||||||
|
|
||||||
return produceState(initialValue = default, category, mangaCountVisibility, tabVisibility) {
|
return produceState(initialValue = default, category, loadedManga, mangaCountVisibility, tabVisibility) {
|
||||||
val title = if (tabVisibility.not()) category?.name ?: defaultTitle else defaultTitle
|
val title = if (tabVisibility.not()) category?.name ?: defaultTitle else defaultTitle
|
||||||
|
|
||||||
value = when {
|
value = when {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user