mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-19 04:19:14 +01:00
Add check for backstack size before pushing DownloadController (#5312)
This commit is contained in:
parent
85a1eb75c9
commit
64f95af3e5
@ -172,10 +172,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…
Reference in New Issue
Block a user