mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Fix crash in search activity
This commit is contained in:
parent
3c77ead449
commit
b6bdc1fc0d
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ open class GlobalSearchController(
|
|||
*/
|
||||
fun setItems(searchResult: List<GlobalSearchItem>) {
|
||||
if (extensionFilter != null) {
|
||||
val results = searchResult.first().results
|
||||
val results = searchResult.firstOrNull()?.results
|
||||
if (results != null && results.size == 1) {
|
||||
val manga = results.first().manga
|
||||
router.replaceTopController(MangaDetailsController(manga, true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue