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 :
*/
fun navigateTo(@NonNull controller: Controller, shouldOverrideBackstack: Boolean) {
if (isSupportedController(controller)) {
if (isAttached()) {
if (isAttached) {
@IdRes val menuItemId = getIdForController(controller)
if (currentlySelectedItemId != menuItemId) {
/* Navigating to new menuItemId */
......@@ -191,7 +191,9 @@ abstract class BottomNavigationController :
getChildRouter(newMenuItem)!!
.setRoot(
RouterTransaction.with(controller)
.pushChangeHandler(FadeChangeHandler(true)))
// .popChangeHandler(HorizontalChangeHandler(false))
// .pushChangeHandler(FadeChangeHandler(false))
)
if (newMenuItem != currentlySelectedItemId) {
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