|
|
@@ -188,7 +188,7 @@ class MessageSoundPlayView @JvmOverloads constructor(
|
|
|
isStart = true
|
|
|
playProgress = duration * 1f / allTime
|
|
|
playAnimator = ValueAnimator.ofFloat(playProgress, 1f)
|
|
|
- playAnimator.duration = ((allTime - duration) / speed).toLong()
|
|
|
+ playAnimator.duration = maxOf((allTime - duration) / speed, 0f).toLong()
|
|
|
|
|
|
playAnimator.addUpdateListener {
|
|
|
playProgress = it.getAnimatedValue() as Float
|