Skip to content

Commit

Permalink
Fix speedometer animation stopped on activity starts.
Browse files Browse the repository at this point in the history
  • Loading branch information
anastr committed Nov 11, 2021
1 parent f525788 commit 46a701f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,9 @@ abstract class Gauge constructor(

override fun jumpDrawablesToCurrentState() {
super.jumpDrawablesToCurrentState()
cancelSpeedAnimator()
if (trembleAnimator?.isRunning == true) {
cancelTremble()
}
}

override fun onAttachedToWindow() {
Expand Down

0 comments on commit 46a701f

Please sign in to comment.