am 7cc5e1d5: Merge "Fix null crash when fragments go away during animations" into honeycomb
* commit '7cc5e1d5488c9e0a3f898a62b626ffb3ae074440': Fix null crash when fragments go away during animations
This commit is contained in:
@@ -978,7 +978,9 @@ final class FragmentManagerImpl extends FragmentManager {
|
||||
anim.addListener(new AnimatorListenerAdapter() {
|
||||
@Override
|
||||
public void onAnimationEnd(Animator animation) {
|
||||
finalFragment.mView.setVisibility(View.GONE);
|
||||
if (finalFragment.mView != null) {
|
||||
finalFragment.mView.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
});
|
||||
anim.start();
|
||||
|
||||
Reference in New Issue
Block a user