Fix clicking the updates button multiple times opening multiple download menus
This commit is contained in:
parent
1b9c66896a
commit
789f1392ac
1 changed files with 4 additions and 2 deletions
|
|
@ -139,8 +139,10 @@ class MainActivity : BaseActivity<MainActivityBinding>() {
|
|||
}
|
||||
// SY -->
|
||||
R.id.nav_updates -> {
|
||||
val controller = router.getControllerWithTag(id.toString()) as? UpdatesController
|
||||
controller?.router?.pushController(DownloadController().withFadeTransaction())
|
||||
if (router.backstack.last().controller() !is DownloadController) {
|
||||
val controller = router.getControllerWithTag(id.toString()) as? UpdatesController
|
||||
controller?.router?.pushController(DownloadController().withFadeTransaction())
|
||||
}
|
||||
}
|
||||
// SY <--
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue