aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-06-13 17:32:40 -0700
committerAllan Wang <me@allanwang.ca>2019-06-13 17:32:40 -0700
commitb39774a9a1103809b0eb54ef1cd2b695ad8ce8b3 (patch)
tree70abfabf3473a061cdb863fdfc1d8bb0e25d2a80 /app/src
parente8168bb8b037490cc2d1826d1068936e8f43f396 (diff)
downloadfrost-b39774a9a1103809b0eb54ef1cd2b695ad8ce8b3.tar.gz
frost-b39774a9a1103809b0eb54ef1cd2b695ad8ce8b3.tar.bz2
frost-b39774a9a1103809b0eb54ef1cd2b695ad8ce8b3.zip
Fix progress animators
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoView.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoView.kt b/app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoView.kt
index 6ee34a2b..b3912bab 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoView.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoView.kt
@@ -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()
}