mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Fixing crash when library view is null
This commit is contained in:
parent
31bde4124d
commit
5bf039b801
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue