Fix activity UI state when activity is killed (closes #2547)
Cette révision appartient à :
Parent
b84638ac5a
révision
4b02ecd6e8
1 fichiers modifiés avec 2 ajouts et 2 suppressions
|
@ -217,13 +217,13 @@ class MainActivity : BaseActivity() {
|
|||
}
|
||||
|
||||
private fun syncActivityViewWithController(to: Controller?, from: Controller? = null) {
|
||||
if (from is DialogController || to is DialogController) {
|
||||
if (from is DialogController) {
|
||||
return
|
||||
}
|
||||
|
||||
supportActionBar?.setDisplayHomeAsUpEnabled(router.backstackSize != 1)
|
||||
|
||||
if (from is RootController && to !is RootController) {
|
||||
if ((from == null || from is RootController) && to !is RootController) {
|
||||
bottomNavAnimator.collapse()
|
||||
}
|
||||
if (to is RootController && from !is RootController) {
|
||||
|
|
Référencer dans un nouveau ticket