fragment transaction first add animation removed

This commit is contained in:
Gavriil Sitnikov 2016-07-16 15:19:29 +03:00
parent 051f4108c3
commit 624067edec
1 changed files with 3 additions and 1 deletions

View File

@ -141,8 +141,10 @@ public class FragmentNavigation {
final FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction()
.replace(containerViewId, fragment, null)
.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN)
.addToBackStack(backStackTag);
if (fragmentManager.getBackStackEntryCount() != 0) {
fragmentTransaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
}
if (transactionSetup != null) {
transactionSetup.call(fragmentTransaction).commit();
} else {