Library category page performance fixes (#7650)
* Don't compose category page unnecessarily * Remove unnecessary library pager recompose Defer and remember the "currentPage" state read since it's only needed when the pager is composed for the first time. * Badge opts * Sync text style with previous impl Also avoid reallocating by using copy
This commit is contained in:
@@ -61,8 +61,8 @@ fun LibraryScreen(
|
||||
LibraryContent(
|
||||
state = presenter,
|
||||
contentPadding = paddingValues,
|
||||
currentPage = presenter.activeCategory,
|
||||
isLibraryEmpty = presenter.loadedManga.isEmpty(),
|
||||
currentPage = { presenter.activeCategory },
|
||||
isLibraryEmpty = { presenter.loadedManga.isEmpty() },
|
||||
showPageTabs = presenter.tabVisibility,
|
||||
showMangaCount = presenter.mangaCountVisibility,
|
||||
onChangeCurrentPage = { presenter.activeCategory = it },
|
||||
|
||||
Reference in New Issue
Block a user