From db011afcc0591bacbdf9fc1a71de2db79c734a47 Mon Sep 17 00:00:00 2001 From: Mygod Date: Wed, 27 Dec 2017 12:11:32 +0800 Subject: [PATCH] Fix connected button not rendered correctly --- .../src/main/java/com/github/shadowsocks/widget/ServiceButton.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/mobile/src/main/java/com/github/shadowsocks/widget/ServiceButton.kt b/mobile/src/main/java/com/github/shadowsocks/widget/ServiceButton.kt index 0c06c15c..8569990c 100644 --- a/mobile/src/main/java/com/github/shadowsocks/widget/ServiceButton.kt +++ b/mobile/src/main/java/com/github/shadowsocks/widget/ServiceButton.kt @@ -108,6 +108,7 @@ class ServiceButton @JvmOverloads constructor(context: Context, attrs: Attribute animationQueue.peekFirst()?.stop() animationQueue.clear() setImageDrawable(icon) + icon.start() // force ensureAnimatorSet to be called so that stop() will work icon.stop() } }