Fix sorting crashes
This commit is contained in:
parent
b279c9115f
commit
ffa8cee0ea
1 changed files with 2 additions and 6 deletions
|
|
@ -202,12 +202,8 @@ class LibraryController(
|
|||
}
|
||||
|
||||
fun showSettingsSheet() {
|
||||
if (presenter.categories.isNotEmpty() /* SY --> */ && presenter.groupType == LibraryGroup.BY_DEFAULT /* SY <-- */) {
|
||||
presenter.categories[presenter.activeCategory].let { category ->
|
||||
settingsSheet?.show(category)
|
||||
}
|
||||
} else {
|
||||
settingsSheet?.show()
|
||||
presenter.categories.getOrNull(presenter.activeCategory)?.let { category ->
|
||||
settingsSheet?.show(category)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue