diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt index 70e5e83db..07ce03a59 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt @@ -215,7 +215,7 @@ class MainActivity : BaseViewBindingActivity() { } ) - syncActivityViewWithController(router.backstack.lastOrNull()?.controller) + syncActivityViewWithController() if (savedInstanceState == null) { // Reset Incognito Mode on relaunch @@ -320,6 +320,7 @@ class MainActivity : BaseViewBindingActivity() { override fun onResume() { super.onResume() + syncActivityViewWithController() checkForUpdates() } @@ -488,7 +489,11 @@ class MainActivity : BaseViewBindingActivity() { } } - private fun syncActivityViewWithController(to: Controller?, from: Controller? = null, isPush: Boolean = true) { + private fun syncActivityViewWithController( + to: Controller? = router.backstack.lastOrNull()?.controller, + from: Controller? = null, + isPush: Boolean = true, + ) { if (from is DialogController || to is DialogController) { return }