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

Commit b9d34127 authored by Julia Tuttle's avatar Julia Tuttle Committed by Android (Google) Code Review
Browse files

Merge "Keep bell after chronometer from wiggling in AOD RON" into main

parents 173fe5bf d62a51e4
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),