diff --git a/android/app/src/main/java/me/kavishdevar/librepods/composables/StyledSwitch.kt b/android/app/src/main/java/me/kavishdevar/librepods/composables/StyledSwitch.kt index 7250568..621a4d3 100644 --- a/android/app/src/main/java/me/kavishdevar/librepods/composables/StyledSwitch.kt +++ b/android/app/src/main/java/me/kavishdevar/librepods/composables/StyledSwitch.kt @@ -120,9 +120,10 @@ fun StyledSwitch( val targetFrac = if (checked) 1f else 0f animatedFraction.animateTo(targetFrac, progressAnimationSpec) } + if (progressAnimation.value > 0f) return@coroutineScope launch { - progressAnimation.animateTo(1f, tween(100, easing = FastOutSlowInEasing)) - progressAnimation.animateTo(0f, tween(100, easing = FastOutSlowInEasing)) + progressAnimation.animateTo(1f, tween(175, easing = FastOutSlowInEasing)) + progressAnimation.animateTo(0f, tween(175, easing = FastOutSlowInEasing)) } } }