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

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

Strip all spans from AOD RON text

Bug: 369151941
Flag: com.android.systemui.aod_ui_rich_ongoing
Test: manual
Change-Id: I82b3e02320bac61e71be47f6b5e91185c055b96f
parent 92d2d983
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -351,7 +351,7 @@ private class AODPromotedNotificationViewUpdater(root: View) {
        setTextViewColor(view, color)

        if (text != null && text.isNotEmpty()) {
            view?.text = text
            view?.text = text.toSkeleton()
            view?.visibility = VISIBLE
        } else {
            view?.text = ""
@@ -364,6 +364,10 @@ private class AODPromotedNotificationViewUpdater(root: View) {
    }
}

private fun CharSequence.toSkeleton(): CharSequence {
    return this.toString()
}

private enum class AodPromotedNotificationColor(colorUInt: UInt) {
    Background(0x00000000u),
    PrimaryText(0xFFFFFFFFu),