Clean up repetitive controller transactions
This commit is contained in:
@@ -60,7 +60,7 @@ import eu.kanade.tachiyomi.ui.base.controller.DialogController
|
||||
import eu.kanade.tachiyomi.ui.base.controller.FabController
|
||||
import eu.kanade.tachiyomi.ui.base.controller.NucleusController
|
||||
import eu.kanade.tachiyomi.ui.base.controller.getMainAppBarHeight
|
||||
import eu.kanade.tachiyomi.ui.base.controller.withFadeTransaction
|
||||
import eu.kanade.tachiyomi.ui.base.controller.pushController
|
||||
import eu.kanade.tachiyomi.ui.browse.migration.search.SearchController
|
||||
import eu.kanade.tachiyomi.ui.browse.source.browse.BrowseSourceController
|
||||
import eu.kanade.tachiyomi.ui.browse.source.globalsearch.GlobalSearchController
|
||||
@@ -553,7 +553,7 @@ class MangaController :
|
||||
}
|
||||
setNegativeButton(activity?.getString(R.string.action_cancel)) { _, _ -> }
|
||||
setNeutralButton(activity?.getString(R.string.action_show_manga)) { _, _ ->
|
||||
router.pushController(MangaController(libraryManga).withFadeTransaction())
|
||||
router.pushController(MangaController(libraryManga))
|
||||
}
|
||||
setCancelable(true)
|
||||
}.create().show()
|
||||
@@ -687,7 +687,7 @@ class MangaController :
|
||||
* @param query the search query to pass to the search controller
|
||||
*/
|
||||
fun performGlobalSearch(query: String) {
|
||||
router.pushController(GlobalSearchController(query).withFadeTransaction())
|
||||
router.pushController(GlobalSearchController(query))
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -886,7 +886,7 @@ class MangaController :
|
||||
private fun migrateManga() {
|
||||
val controller = SearchController(presenter.manga)
|
||||
controller.targetController = this
|
||||
router.pushController(controller.withFadeTransaction())
|
||||
router.pushController(controller)
|
||||
}
|
||||
|
||||
// Manga info - end
|
||||
|
||||
Reference in New Issue
Block a user