Skip to content

Commit

Permalink
Add defaultColor as effect key in circular indicator
Browse files Browse the repository at this point in the history
That could also change based on the isDark value, so while style.color
will likely be a good proxy for that in 99.9% of cases, this is a better
safe than sorry tweak.
  • Loading branch information
rock3r committed Apr 12, 2024
1 parent 955ac6b commit a51ae1f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private fun CircularProgressIndicatorImpl(
var framesCount by remember { mutableStateOf(0) }

val density = LocalDensity.current
LaunchedEffect(density, style.color) {
LaunchedEffect(density, style.color, defaultColor) {
launch(dispatcher) {
frames.clear()
frames.addAll(
Expand Down

0 comments on commit a51ae1f

Please sign in to comment.