We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cca88a4 commit 12fda0eCopy full SHA for 12fda0e
app/src/main/java/com/infomaniak/mail/utils/UiUtils.kt
@@ -158,7 +158,7 @@ object UiUtils {
158
ValueAnimator.ofObject(ArgbEvaluator(), oldColor, newColor).apply {
159
setDuration(duration)
160
addUpdateListener { animator ->
161
- lifecycleScope.launch(Dispatchers.Main) { applyColor(animator.animatedValue as Int) }
+ viewLifecycleOwner.lifecycleScope.launch(Dispatchers.Main) { applyColor(animator.animatedValue as Int) }
162
}
163
start()
164
0 commit comments