We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a135fa commit 942ff82Copy full SHA for 942ff82
android/app/src/main/java/me/kavishdevar/librepods/composables/StyledSwitch.kt
@@ -120,9 +120,10 @@ fun StyledSwitch(
120
val targetFrac = if (checked) 1f else 0f
121
animatedFraction.animateTo(targetFrac, progressAnimationSpec)
122
}
123
+ if (progressAnimation.value > 0f) return@coroutineScope
124
launch {
- progressAnimation.animateTo(1f, tween(100, easing = FastOutSlowInEasing))
125
- progressAnimation.animateTo(0f, tween(100, easing = FastOutSlowInEasing))
+ progressAnimation.animateTo(1f, tween(175, easing = FastOutSlowInEasing))
126
+ progressAnimation.animateTo(0f, tween(175, easing = FastOutSlowInEasing))
127
128
129
0 commit comments