List of usage examples for android.app FragmentTransaction isAddToBackStackAllowed
public abstract boolean isAddToBackStackAllowed();
From source file:com.silentcircle.silenttext.activity.AccountCreationActivity.java
@Override public void onNext(Fragment fragment) { FragmentTransaction tx = getFragmentManager().beginTransaction(); if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR2) { tx.setCustomAnimations(R.animator.slide_in_from_right, R.animator.slide_out_to_left, R.animator.slide_in_from_left, R.animator.slide_out_to_right); }/*from ww w . j a va 2 s. com*/ if (tx.isAddToBackStackAllowed()) { tx.addToBackStack(null); } tx.replace(R.id.content, fragment); tx.commit(); }