Skip to content

Commit

Permalink
Call correct version of attachTextChangeAnimator() when there is no…
Browse files Browse the repository at this point in the history
… color in `initProgress()`
  • Loading branch information
KevinBoulongne committed May 28, 2024
1 parent 9feb3e8 commit 3ce0a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/infomaniak/lib/core/utils/Extensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ fun MaterialButton.initProgress(lifecycle: LifecycleOwner? = null, color: Int? =
}
}

attachTextChangeAnimator(params)
params?.let(::attachTextChangeAnimator) ?: attachTextChangeAnimator()
}

fun MaterialButton.updateTextColor(color: Int?) {
Expand Down

0 comments on commit 3ce0a17

Please sign in to comment.