diff options
author | Allan Wang <me@allanwang.ca> | 2018-03-11 19:24:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-11 19:24:32 -0400 |
commit | fe51373f5a95323d64f6d966888a2c6c62a36deb (patch) | |
tree | 328bf7ab5bf00f01e070e9d84ff71cac59b0ecf1 /app/src/main/kotlin/com/pitchedapps/frost/utils/AnimatedVectorDelegate.kt | |
parent | 67988a25d83fc10b187fcc821c3ceacfad0195d5 (diff) | |
download | frost-fe51373f5a95323d64f6d966888a2c6c62a36deb.tar.gz frost-fe51373f5a95323d64f6d966888a2c6c62a36deb.tar.bz2 frost-fe51373f5a95323d64f6d966888a2c6c62a36deb.zip |
Enhancement/debug mode (#779)
* Update changelog
* Improve debugger
* Remove need for mapping urls
* Remove excess logs
* Clean up
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/utils/AnimatedVectorDelegate.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/utils/AnimatedVectorDelegate.kt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/AnimatedVectorDelegate.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/AnimatedVectorDelegate.kt index 928f90d3..8d800e9b 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/utils/AnimatedVectorDelegate.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/AnimatedVectorDelegate.kt @@ -54,8 +54,10 @@ class AnimatedVectorDelegate( override fun bind(view: ImageView) { this.view = view - view.context.drawable(avdStart) as? AnimatedVectorDrawable ?: throw IllegalArgumentException("AnimatedVectorDelegate has a starting drawable that isn't an avd") - view.context.drawable(avdEnd) as? AnimatedVectorDrawable ?: throw IllegalArgumentException("AnimatedVectorDelegate has an ending drawable that isn't an avd") + view.context.drawable(avdStart) as? AnimatedVectorDrawable + ?: throw IllegalArgumentException("AnimatedVectorDelegate has a starting drawable that isn't an avd") + view.context.drawable(avdEnd) as? AnimatedVectorDrawable + ?: throw IllegalArgumentException("AnimatedVectorDelegate has an ending drawable that isn't an avd") view.setImageResource(avdStart) if (emitOnBind) animatedVectorListener?.invoke(avd!!, false) } |