Fix clicking the updates button multiple times opening multiple download menus
This commit is contained in:
parent
1b9c66896a
commit
789f1392ac
@ -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 <--
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user