Commit 0cf50983 authored by Mygod's avatar Mygod

Fix dismissing ProgressDialog after activity destroyed

parent aed63088
......@@ -537,8 +537,8 @@ class Shadowsocks
}
def clearDialog() {
if (progressDialog != null) {
progressDialog.dismiss()
if (progressDialog != null && progressDialog.isShowing) {
if (!isDestroyed) progressDialog.dismiss()
progressDialog = null
progressTag = -1
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment