Add check for backstack size before pushing DownloadController (#5312)
(cherry picked from commit 64f95af3e51bc721db1be137e34007e72ee4aeb9)
This commit is contained in:
parent
9196a24eb1
commit
09eab48b1b
@ -198,10 +198,12 @@ class MainActivity : BaseViewBindingActivity<MainActivityBinding>() {
|
|||||||
controller?.showSettingsSheet()
|
controller?.showSettingsSheet()
|
||||||
}
|
}
|
||||||
R.id.nav_updates -> {
|
R.id.nav_updates -> {
|
||||||
|
if (router.backstackSize == 1) {
|
||||||
router.pushController(DownloadController().withFadeTransaction())
|
router.pushController(DownloadController().withFadeTransaction())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user