More domain model usage in SY
This commit is contained in:
@@ -43,7 +43,7 @@ class SmartSearchController(bundle: Bundle) : NucleusController<EhSmartSearchBin
|
||||
presenter.smartSearchFlow
|
||||
.onEach { results ->
|
||||
if (results is SmartSearchPresenter.SearchResults.Found) {
|
||||
val transaction = MangaController(results.manga.id!!, true, smartSearchConfig).withFadeTransaction()
|
||||
val transaction = MangaController(results.manga.id, true, smartSearchConfig).withFadeTransaction()
|
||||
router.replaceTopController(transaction)
|
||||
} else {
|
||||
if (results is SmartSearchPresenter.SearchResults.NotFound) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package exh.ui.smartsearch
|
||||
|
||||
import android.os.Bundle
|
||||
import eu.kanade.tachiyomi.data.database.models.Manga
|
||||
import eu.kanade.domain.manga.model.Manga
|
||||
import eu.kanade.tachiyomi.source.CatalogueSource
|
||||
import eu.kanade.tachiyomi.ui.browse.source.SourcesController
|
||||
import eu.kanade.tachiyomi.util.lang.launchIO
|
||||
|
||||
Reference in New Issue
Block a user