Fix connected button not rendered correctly

This commit is contained in:
Mygod
2017-12-27 12:11:32 +08:00
parent ebe4d6fd0c
commit db011afcc0
@@ -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()
}
}