Commit 0cf50983 authored by Mygod's avatar Mygod

Fix dismissing ProgressDialog after activity destroyed

parent aed63088
...@@ -537,8 +537,8 @@ class Shadowsocks ...@@ -537,8 +537,8 @@ class Shadowsocks
} }
def clearDialog() { def clearDialog() {
if (progressDialog != null) { if (progressDialog != null && progressDialog.isShowing) {
progressDialog.dismiss() if (!isDestroyed) progressDialog.dismiss()
progressDialog = null progressDialog = null
progressTag = -1 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