Add a double click action on the updates bottom bar button to open downloads

This commit is contained in:
Jobobby04 2020-09-29 15:52:39 -04:00
parent c6db5a01dd
commit 1b9c66896a

View File

@ -137,6 +137,12 @@ class MainActivity : BaseActivity<MainActivityBinding>() {
val controller = router.getControllerWithTag(id.toString()) as? LibraryController val controller = router.getControllerWithTag(id.toString()) as? LibraryController
controller?.showSettingsSheet() controller?.showSettingsSheet()
} }
// SY -->
R.id.nav_updates -> {
val controller = router.getControllerWithTag(id.toString()) as? UpdatesController
controller?.router?.pushController(DownloadController().withFadeTransaction())
}
// SY <--
} }
} }
true true