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

Commit 04b2662f authored by Fabián Kozynski's avatar Fabián Kozynski
Browse files

Fix PagerDots RTL

The reflection should be wrt the center (as is default).

Test: manual, HSV
Fixes: 407707118
Flag: com.android.systemui.qs_ui_refactor_compose_fragment
Change-Id: I5a17cca2ac1870a6afcca2711f47d9add4cb650c
parent 4d9fc173
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -96,7 +96,7 @@ fun PagerDots(
            .pagerDotsSemantics(pagerState, coroutineScope)
    ) {
        val rtl = layoutDirection == LayoutDirection.Rtl
        scale(if (rtl) -1f else 1f, 1f, Offset(0f, center.y)) {
        scale(if (rtl) -1f else 1f, 1f) {
            // The impacted index is the neighbor of the active index, in the direction dictated
            // from the page offset. The impacted dot will have its width modified
            val impactedIndex =