您的位置:首页 > 其它

IllegalStateException: <Fragment> is not currently in the FragmentManager

2015-03-26 17:48 369 查看
编辑了一次,不合格被刷新了。。。
我的思路是把初始化viewpager放在oncreat()里面,先初始化ui,再获取数据。
注:之前是先获取数据,再初始化viewpager,正常情况下不会出错。
出错的原因是:
界面A(有viewpager)--(跳到)编辑界面B--保存返回界面A,这时候推出界面A,必然发生IllegalStateException: <Fragment> is not currently in the FragmentManager。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐