Commit 3fd8fbd3 authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

remove glitter bug with screen re-attach

parent 0bae18e9
...@@ -157,7 +157,7 @@ abstract class BottomNavigationController : ...@@ -157,7 +157,7 @@ abstract class BottomNavigationController :
*/ */
fun navigateTo(@NonNull controller: Controller, shouldOverrideBackstack: Boolean) { fun navigateTo(@NonNull controller: Controller, shouldOverrideBackstack: Boolean) {
if (isSupportedController(controller)) { if (isSupportedController(controller)) {
if (isAttached()) { if (isAttached) {
@IdRes val menuItemId = getIdForController(controller) @IdRes val menuItemId = getIdForController(controller)
if (currentlySelectedItemId != menuItemId) { if (currentlySelectedItemId != menuItemId) {
/* Navigating to new menuItemId */ /* Navigating to new menuItemId */
...@@ -191,7 +191,9 @@ abstract class BottomNavigationController : ...@@ -191,7 +191,9 @@ abstract class BottomNavigationController :
getChildRouter(newMenuItem)!! getChildRouter(newMenuItem)!!
.setRoot( .setRoot(
RouterTransaction.with(controller) RouterTransaction.with(controller)
.pushChangeHandler(FadeChangeHandler(true))) // .popChangeHandler(HorizontalChangeHandler(false))
// .pushChangeHandler(FadeChangeHandler(false))
)
if (newMenuItem != currentlySelectedItemId) { if (newMenuItem != currentlySelectedItemId) {
ensureMenuSelectionState(newMenuItem) ensureMenuSelectionState(newMenuItem)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment