aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/utils/AnimatedVectorDelegate.kt
diff options
context:
space:
mode:
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.kt4
1 files changed, 2 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 a530df32..928f90d3 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/utils/AnimatedVectorDelegate.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/AnimatedVectorDelegate.kt
@@ -67,8 +67,8 @@ class AnimatedVectorDelegate(
override fun animateToggle() = animateImpl(!atStart)
private fun animateImpl(toStart: Boolean) {
- if ((atStart == toStart)) return L.d("AVD already at ${if (toStart) "start" else "end"}")
- if (avd == null) return L.d("AVD null resource")//no longer using animated vector; do not modify
+ if ((atStart == toStart)) return L.d { "AVD already at ${if (toStart) "start" else "end"}" }
+ if (avd == null) return L.d { "AVD null resource" }//no longer using animated vector; do not modify
avd?.stop()
view.setImageResource(if (toStart) avdEnd else avdStart)
animatedVectorListener?.invoke(avd!!, !toStart)