From aae068b7b2d10af50d0652ab7a093795c9ab5e47 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Sun, 26 Jul 2015 10:22:15 +0800 Subject: [PATCH] fix a UI issue --- src/main/scala/com/github/shadowsocks/Shadowsocks.scala | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/scala/com/github/shadowsocks/Shadowsocks.scala b/src/main/scala/com/github/shadowsocks/Shadowsocks.scala index 9c53d842db..56c584e60b 100644 --- a/src/main/scala/com/github/shadowsocks/Shadowsocks.scala +++ b/src/main/scala/com/github/shadowsocks/Shadowsocks.scala @@ -932,10 +932,14 @@ class Shadowsocks private def recovery() { val h = showProgress(getString(R.string.recovering)) - serviceStop() spawn { reset() - h.sendEmptyMessage(0) + handler.post(new Runnable { + override def run() { + serviceStop + h.sendEmptyMessage(0) + } + }) } }