mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 01:35:09 +01:00
more tracepot crash fixes
This commit is contained in:
parent
11598362b8
commit
d7335bdc2f
@ -724,8 +724,8 @@ class LibraryController(
|
|||||||
if (justStarted && freshStart) {
|
if (justStarted && freshStart) {
|
||||||
scrollToHeader(activeCategory)
|
scrollToHeader(activeCategory)
|
||||||
}
|
}
|
||||||
recycler.post {
|
recycler?.post {
|
||||||
elevateAppBar(recycler.canScrollVertically(-1))
|
elevateAppBar(recycler?.canScrollVertically(-1) == true)
|
||||||
setActiveCategory()
|
setActiveCategory()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -158,7 +158,7 @@ class LibraryPresenter(
|
|||||||
private suspend fun sectionLibrary(items: List<LibraryItem>, freshStart: Boolean = false) {
|
private suspend fun sectionLibrary(items: List<LibraryItem>, freshStart: Boolean = false) {
|
||||||
libraryItems = items
|
libraryItems = items
|
||||||
val showAll = showAllCategories || !libraryIsGrouped ||
|
val showAll = showAllCategories || !libraryIsGrouped ||
|
||||||
categories.size == 1
|
categories.size <= 1
|
||||||
if (!showAll) {
|
if (!showAll) {
|
||||||
sectionedLibraryItems = items.groupBy { it.header.category.id ?: 0 }.toMutableMap()
|
sectionedLibraryItems = items.groupBy { it.header.category.id ?: 0 }.toMutableMap()
|
||||||
if (currentCategory == -1) currentCategory = categories.find {
|
if (currentCategory == -1) currentCategory = categories.find {
|
||||||
|
Loading…
Reference in New Issue
Block a user