java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState with DialogFragment

后端 未结 10 1237
孤独总比滥情好
孤独总比滥情好 2020-12-09 01:56

I am facing issue with DialogFragment / getSupportFragmentManager / Android version 4.x

01-10 19:46:48.228: E/AndroidRuntime(9879): java.lang.IllegalStateExc         


        
10条回答
  •  盖世英雄少女心
    2020-12-09 02:33

    You could check if the current activity isActive() and only in that case start the fragment transaction of DialogFragment. I had a similar problem and this check solved my case.

提交回复
热议问题