Let's say I have a fragment transaction that, when originally executed, was set up with these animations:
transaction.setCustomAnimations(R.anim.slide_in_left, R.anim.slide_out_right, R.anim.slide_in_right, R.anim.slide_out_left);
Usually, I want the animation to appear when the user goes back. There are occasional cases in which I want to cancel the back animation, and just pop the backstack without animation and immediately execute another replace fragment transaction. Is there a way to cancel the back animations before popping the backstack?
Thanks.