Fix clicking the updates button multiple times opening multiple download menus
This commit is contained in:
parent
1b9c66896a
commit
789f1392ac
@ -139,9 +139,11 @@ class MainActivity : BaseActivity<MainActivityBinding>() {
|
||||
}
|
||||
// SY -->
|
||||
R.id.nav_updates -> {
|
||||
if (router.backstack.last().controller() !is DownloadController) {
|
||||
val controller = router.getControllerWithTag(id.toString()) as? UpdatesController
|
||||
controller?.router?.pushController(DownloadController().withFadeTransaction())
|
||||
}
|
||||
}
|
||||
// SY <--
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user