Transition fix

This commit is contained in:
Denis Karmyshakov 2018-05-29 12:58:41 +03:00
parent a789ae9efe
commit a55510f8f1
1 changed files with 1 additions and 2 deletions

View File

@ -111,11 +111,10 @@ open class FragmentNavigation(
}
val fragmentTransaction = fragmentManager.beginTransaction()
.setTransition(transition)
transactionSetup?.invoke(fragmentTransaction)
fragmentTransaction.replace(containerViewId, fragment, null)
if (addToStack) {
fragmentTransaction.addToBackStack(backStackTag)
fragmentTransaction.addToBackStack(backStackTag).setTransition(transition)
} else {
fragmentTransaction.setPrimaryNavigationFragment(fragment)
}