Fix clicking the updates button multiple times opening multiple download menus

This commit is contained in:
Jobobby04 2020-09-29 19:16:33 -04:00
parent 1b9c66896a
commit 789f1392ac

View File

@ -139,8 +139,10 @@ class MainActivity : BaseActivity<MainActivityBinding>() {
} }
// SY --> // SY -->
R.id.nav_updates -> { R.id.nav_updates -> {
val controller = router.getControllerWithTag(id.toString()) as? UpdatesController if (router.backstack.last().controller() !is DownloadController) {
controller?.router?.pushController(DownloadController().withFadeTransaction()) val controller = router.getControllerWithTag(id.toString()) as? UpdatesController
controller?.router?.pushController(DownloadController().withFadeTransaction())
}
} }
// SY <-- // SY <--
} }