1
0
mirror of https://github.com/AllanWang/Frost-for-Facebook.git synced 2024-11-10 04:52:38 +01:00

Fix progress animators

This commit is contained in:
Allan Wang 2019-06-13 17:32:40 -07:00
parent e8168bb8b0
commit b39774a9a1
No known key found for this signature in database
GPG Key ID: C93E3F9C679D7A56

View File

@ -97,7 +97,7 @@ class FrostVideoView @JvmOverloads constructor(
if (!isPlaying) showControls()
else viewerContract.onControlsHidden()
}
}
}.start()
} else {
hideControls()
val (scale, tX, tY) = mapBounds()
@ -108,7 +108,7 @@ class FrostVideoView @JvmOverloads constructor(
withAnimator(origScale, scale) { scaleXY = it }
withAnimator(origX, tX) { translationX = it }
withAnimator(origY, tY) { translationY = it }
}
}.start()
}
}
@ -231,7 +231,7 @@ class FrostVideoView @JvmOverloads constructor(
duration = FAST_ANIMATION_DURATION
withAnimator(alpha, 0f) { alpha = it }
withEndAction { onFinishedListener() }
}
}.start()
else
onFinishedListener()
}