【BUG】解决用户上报bug：dialog.dismiss时之前的Activity已经被销毁了 (java.lang.IllegalArgumentException: View not attached to window manager)