Now call
pushFragment(fragment);
with not transactionOptions. So the default transaction options should be used.
In
private void commitTransaction(FragmentTransaction fragmentTransaction, @Nullable FragNavTransactionOptions transactionOptions)
only the transactionOptions parameter is used, but not the default transaction options when the parameter is null
When provding default transaction options with the builder, the allowlossles does not get evaluated.
Example:
_builder.defaultTransactionOptions(FragNavTransactionOptions.newBuilder().allowStateLoss(true).build());
Now call
pushFragment(fragment);
with not transactionOptions. So the default transaction options should be used.In
private void commitTransaction(FragmentTransaction fragmentTransaction, @Nullable FragNavTransactionOptions transactionOptions)
only the transactionOptions parameter is used, but not the default transaction options when the parameter is null