mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 20:01:53 +01:00
Fix crash in search activity
This commit is contained in:
parent
3c77ead449
commit
b6bdc1fc0d
@ -195,7 +195,7 @@ open class GlobalSearchController(
|
|||||||
*/
|
*/
|
||||||
fun setItems(searchResult: List<GlobalSearchItem>) {
|
fun setItems(searchResult: List<GlobalSearchItem>) {
|
||||||
if (extensionFilter != null) {
|
if (extensionFilter != null) {
|
||||||
val results = searchResult.first().results
|
val results = searchResult.firstOrNull()?.results
|
||||||
if (results != null && results.size == 1) {
|
if (results != null && results.size == 1) {
|
||||||
val manga = results.first().manga
|
val manga = results.first().manga
|
||||||
router.replaceTopController(MangaDetailsController(manga, true)
|
router.replaceTopController(MangaDetailsController(manga, true)
|
||||||
|
Loading…
Reference in New Issue
Block a user