Fragment Or DialogFragment Can not perform this action after onSaveInstanceState

转载:http://blog.csdn.net/chenshufei2/article/details/48747149

public void show(FragmentManager manager, String tag) {
        mDismissed = false;
        mShownByMe = true;
        FragmentTransaction ft = manager.beginTransaction();
        ft.add(this, tag);
        ft.commit(); //注意这里使用提commit
    }

  

dialogFragment.dismissAllowingStateLoss

  

posted on 2017-04-21 17:07  wjw334  阅读(151)  评论(0编辑  收藏  举报

导航