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

Commit b7610715 authored by Matías Hernández's avatar Matías Hernández Committed by Android (Google) Code Review
Browse files

Merge "Fix performance regression in ModesTileMapper" into main

parents 9922b562 535f5610
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -41,10 +41,11 @@ constructor(
            if (Flags.modesApi() && Flags.modesUi() && Flags.modesUiIcons() && data.icon != null) {
                icon = { data.icon }
            } else {
                val defaultIconRes =
                val iconRes =
                    if (data.isActivated) R.drawable.qs_dnd_icon_on else R.drawable.qs_dnd_icon_off
                iconRes = defaultIconRes
                icon = { resources.getDrawable(defaultIconRes, theme).asIcon() }
                val icon = resources.getDrawable(iconRes, theme).asIcon()
                this.iconRes = iconRes
                this.icon = { icon }
            }
            activationState =
                if (data.isActivated) {