Some crash fixes
This commit is contained in:
@@ -143,7 +143,7 @@ class LibraryController(
|
||||
if (preferences.categoryTabs().get()) {
|
||||
currentTitle = resources?.getString(R.string.label_library)
|
||||
} else {
|
||||
adapter?.categories?.get(binding.libraryPager.currentItem)?.let {
|
||||
adapter?.categories?.getOrNull(binding.libraryPager.currentItem)?.let {
|
||||
currentTitle = it.name
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user