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

Commit d66e6c08 authored by Evan Laird's avatar Evan Laird
Browse files

[shade] marquee the battery remaining text if need be

Test: manual; `adb shell cmd battery unplug` and verify that the text
marquees only when font size is set to max
Fixes: 409157513
Flag: com.android.settingslib.flags.new_status_bar_icons
Flag: com.android.systemui.status_bar_root_modernization

Change-Id: I92e05c04993398faf84c42215d1fbaae9f8282a8
parent 2a8cf295
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.systemui.statusbar.pipeline.battery.ui.composable

import androidx.compose.foundation.basicMarquee
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.height
@@ -67,6 +68,7 @@ fun BatteryWithEstimate(
                    color = textColor,
                    style = MaterialTheme.typography.bodyMediumEmphasized,
                    maxLines = 1,
                    modifier = Modifier.basicMarquee(iterations = 1),
                )
            }
        }