Can not perform this action after onSaveInstanceState
参考:https://www.jianshu.com/p/d9143a92ad94
出现如题问题的时候,只需将fragmentTransaction.commit()方法置换为fragmentTransaction.commitAllowingStateLoss()方法即可。
commitAllowingStateLoss()相比commit()方法,就只是一个简单的判断而已,并且只有
原创
2018-01-19 18:13:05 ·
240 阅读 ·
0 评论