fragment animation disabled for first fragment

This commit is contained in:
Gavriil Sitnikov 2016-07-16 15:16:53 +03:00
parent 98198eb1e2
commit 5090edc38e
1 changed files with 3 additions and 1 deletions

View File

@ -104,8 +104,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 {