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

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

Loading…
Cancel
Save