Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97b9f843 authored by Olivier St-Onge's avatar Olivier St-Onge
Browse files

Add colors as keys for the pager dots animated colors

Test: manually toggling dark theme
Flag: com.android.systemui.qs_ui_refactor_compose_fragment
Fixes: 417445760
Change-Id: Ieccc700e974533eb6a18583b90367118c69771d6
parent cc0eedd6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ fun PagerDots(

    // List of animated colors, one per page
    val colors =
        remember(pagerState.pageCount) {
        remember(pagerState.pageCount, activeColor, nonActiveColor) {
            List(pagerState.pageCount) { page ->
                Animatable(if (page == pagerState.currentPage) activeColor else nonActiveColor)
            }