android DialogFragment 出现的 java.lang.IllegalStateException

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

把dialogfragment.dismiss()改为dialogfragment.dismissAllowingStateLoss(),就可以解决

你可能感兴趣的:(android DialogFragment 出现的 java.lang.IllegalStateException)