pull/37/head
kunfei 6 years ago
parent 61144577b0
commit 4e97ef576d
  1. 11
      app/src/main/java/io/legado/app/ui/widget/anima/RotateLoading.kt

@ -208,15 +208,8 @@ class RotateLoading : View {
private fun stopAnimator() { private fun stopAnimator() {
animate().cancel() animate().cancel()
animate().scaleX(0.0f) isStarted = false
.scaleY(0.0f) visibility = GONE
.setListener(object : AnimatorListenerAdapter() {
override fun onAnimationEnd(animation: Animator) {
isStarted = false
visibility = GONE
}
})
.start()
} }
companion object { companion object {

Loading…
Cancel
Save