fix a UI bug

This commit is contained in:
Max Lv
2015-08-31 13:05:45 +08:00
parent 11bfef423a
commit 336fa3b775
2 changed files with 2 additions and 2 deletions
@@ -1111,7 +1111,7 @@ class Shadowsocks
changeSwitch(checked = true)
setPreferenceEnabled(enabled = false)
case State.STOPPED =>
if (progressTag == R.string.stopping) {
if (progressTag == R.string.stopping || progressTag == R.string.connecting) {
clearDialog()
}
changeSwitch(checked = false)