fragment animation disabled for first fragment
This commit is contained in:
parent
98198eb1e2
commit
5090edc38e
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue