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