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

Commit 3e742f2f authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

[SB][Chips] Have chip text padding be on correct side for RTL.

Bug: 410892588
Flag: com.android.systemui.status_bar_chips_modernization
Test: Trigger timer chip while in RTL language -> verify text has the
correct end padding
Test: Trigger normal text chip while in RTL language -> verify text has
correct end padding
Test: Trigger chips in LTR language -> verify text has correct end
padding

Change-Id: I9fcc6486e8fbeef0b1e20bda01ced27004a1cddd
parent a6d14569
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -289,7 +289,7 @@ private class HideTextIfDoesNotFitNode(
            val height = placeable.height
            val height = placeable.height
            val width = placeable.width
            val width = placeable.width
            layout(width + horizontalPadding.roundToPx(), height) {
            layout(width + horizontalPadding.roundToPx(), height) {
                placeable.place(startPadding.roundToPx(), 0)
                placeable.placeRelative(x = startPadding.roundToPx(), y = 0)
            }
            }
        } else {
        } else {
            layout(0, 0) {}
            layout(0, 0) {}