Fix merge with another crash(because of the kotlin dependency update)

This commit is contained in:
Jobobby04 2020-05-24 13:37:43 -04:00
parent e4c8de1145
commit 0316cf47ed

View File

@ -18,7 +18,6 @@ import eu.kanade.tachiyomi.util.system.toast
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import kotlinx.coroutines.NonCancellable
import kotlinx.coroutines.cancel
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
@ -61,7 +60,6 @@ class SmartSearchController(bundle: Bundle? = null) : NucleusController<SmartSea
launch(Dispatchers.Default) {
for (event in presenter.smartSearchChannel) {
withContext(NonCancellable) {
if (event is SmartSearchPresenter.SearchResults.Found) {
val transaction = if (Injekt.get<PreferencesHelper>().eh_useNewMangaInterface().get()) {
MangaAllInOneController(event.manga, true, smartSearchConfig).withFadeTransaction()
@ -86,7 +84,6 @@ class SmartSearchController(bundle: Bundle? = null) : NucleusController<SmartSea
}
}
}
}
override fun onDestroy() {
super.onDestroy()