Points to note when Dialog uses the show() method

Bugly reported the following exception today:

Obviously, the exception is caused by the activity being destroyed when the dialog is displayed. When the dialog is displayed, it is found that the attached activity has been destroyed and the exception is thrown. Therefore, it is recommended to write the following when the dialog is displayed:

Ensure that the current dialog will not call the show() method in an abnormal state

Guess you like

Origin blog.csdn.net/new_acm_/article/details/114919345