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

Commit d62a51e4 authored by Julia Tuttle's avatar Julia Tuttle
Browse files

Keep bell after chronometer from wiggling in AOD RON

Bug: 369151941
Flag: com.android.systemui.aod_ui_rich_ongoing
Test: manual
Change-Id: I331fbd35bc10315878e702c153a0ccd17bc08172
parent 28aa66d2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -426,6 +426,8 @@ private class AODPromotedNotificationViewUpdater(root: View) {

        chronometer = chronometerStub?.inflate() as Chronometer
        chronometerStub = null

        chronometer?.appendFontFeatureSetting("tnum")
    }

    private fun inflateOldProgressBar() {
@@ -501,6 +503,10 @@ private fun Notification.ProgressStyle.Point.toSkeleton(): Notification.Progress
    }
}

private fun TextView.appendFontFeatureSetting(newSetting: String) {
    fontFeatureSettings = (fontFeatureSettings?.let { "$it," } ?: "") + newSetting
}

private enum class AodPromotedNotificationColor(val colorInt: Int) {
    Background(android.graphics.Color.BLACK),
    PrimaryText(android.graphics.Color.WHITE),