mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-25 14:01:51 +01:00
Fixing crash when library view is null
This commit is contained in:
parent
31bde4124d
commit
5bf039b801
@ -294,6 +294,7 @@ class LibraryController(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun setActiveCategory() {
|
private fun setActiveCategory() {
|
||||||
|
category_recycler ?: return
|
||||||
val currentCategory = presenter.categories.indexOfFirst {
|
val currentCategory = presenter.categories.indexOfFirst {
|
||||||
if (presenter.showAllCategories) it.order == activeCategory else presenter.currentCategory == it.id
|
if (presenter.showAllCategories) it.order == activeCategory else presenter.currentCategory == it.id
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user