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…
x
Reference in New Issue
Block a user