mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 03:41:50 +01:00
Fix activity UI state when activity is killed (closes #2547)
This commit is contained in:
parent
b84638ac5a
commit
4b02ecd6e8
@ -217,13 +217,13 @@ class MainActivity : BaseActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun syncActivityViewWithController(to: Controller?, from: Controller? = null) {
|
private fun syncActivityViewWithController(to: Controller?, from: Controller? = null) {
|
||||||
if (from is DialogController || to is DialogController) {
|
if (from is DialogController) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
supportActionBar?.setDisplayHomeAsUpEnabled(router.backstackSize != 1)
|
supportActionBar?.setDisplayHomeAsUpEnabled(router.backstackSize != 1)
|
||||||
|
|
||||||
if (from is RootController && to !is RootController) {
|
if ((from == null || from is RootController) && to !is RootController) {
|
||||||
bottomNavAnimator.collapse()
|
bottomNavAnimator.collapse()
|
||||||
}
|
}
|
||||||
if (to is RootController && from !is RootController) {
|
if (to is RootController && from !is RootController) {
|
||||||
|
Loading…
Reference in New Issue
Block a user