diff options
author | Allan Wang <me@allanwang.ca> | 2018-12-23 20:04:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-23 20:04:08 -0500 |
commit | 88b40736874a876576e1dc6c49c299fdfeb600bb (patch) | |
tree | 2f73204e2d089e3a4a734643a33c27f9b9921f52 /app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoView.kt | |
parent | 813be84a518ca39bba91b26b43b3db56a9d186c7 (diff) | |
download | frost-88b40736874a876576e1dc6c49c299fdfeb600bb.tar.gz frost-88b40736874a876576e1dc6c49c299fdfeb600bb.tar.bz2 frost-88b40736874a876576e1dc6c49c299fdfeb600bb.zip |
Migrate to androidx (#1257)
* Initial migration
* Update gradle wrapper
* Update iconics and revert progressanimator api
* Clean up imports
* Update dependencies and address some lint issues
* Update constants
* Remove extra import
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoView.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoView.kt | 6 |
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 d7f44420..85dc7e18 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoView.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoView.kt @@ -79,7 +79,7 @@ class FrostVideoView @JvmOverloads constructor( if (!isPlaying) showControls() else viewerContract.onControlsHidden() } - }.start() + } } else { hideControls() val (scale, tX, tY) = mapBounds() @@ -90,7 +90,7 @@ class FrostVideoView @JvmOverloads constructor( withAnimator(origScale, scale) { scaleXY = it } withAnimator(origX, tX) { translationX = it } withAnimator(origY, tY) { translationY = it } - }.start() + } } } @@ -210,7 +210,7 @@ class FrostVideoView @JvmOverloads constructor( duration = FAST_ANIMATION_DURATION withAnimator(alpha, 0f) { alpha = it } withEndAction { onFinishedListener() } - }.start() + } else onFinishedListener() } |