美文网首页
Android dialogFragment dismiss()

Android dialogFragment dismiss()

作者: itwillrain | 来源:发表于2020-10-21 16:14 被阅读0次

    友盟bug 收集  主要集中在Android10.0机子上
    Can not perform this action after onSaveInstanceState

        at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:2080)

        at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:2106)

        at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:683)

        at android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:637)

        at android.support.v4.app.DialogFragment.dismissInternal(DialogFragment.java:224)

        at android.support.v4.app.DialogFragment.dismiss(DialogFragment.java:191)

    解决方法
    dismiss() 方法 用 dismissAllowingStateLoss();替换

    相关文章

      网友评论

          本文标题:Android dialogFragment dismiss()

          本文链接:https://www.haomeiwen.com/subject/srlemktx.html