jjzjj

DialogFrag

全部标签

android - 来自 Fragment 的 DialogFrag#show() 抛出 "IllegalStateException: Can not perform this action after onSaveInstanceState"

明确地说,我已经阅读了关于“IllegalStateException:在onSaveInstanceState之后无法执行此操作”的十几个最重要的SO问题,并且我已经阅读了AlexLockwood关于该问题的博客文章http://www.androiddesignpatterns.com/2013/08/fragment-transaction-commit-state-loss.html所以我不是盲目地问这个问题。我有一个非常简单的用例,不涉及AsyncTask或任何后台处理。我有一个包含按钮的fragment。在按钮的onClickListener上,我创建了一个DialogFr