Fixing crash when library view is null

This commit is contained in:
Jays2Kings 2021-03-22 16:40:38 -04:00
parent 31bde4124d
commit 5bf039b801

View File

@ -294,6 +294,7 @@ class LibraryController(
}
private fun setActiveCategory() {
category_recycler ?: return
val currentCategory = presenter.categories.indexOfFirst {
if (presenter.showAllCategories) it.order == activeCategory else presenter.currentCategory == it.id
}