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

Commit a79ddcca authored by Behnam Heydarshahi's avatar Behnam Heydarshahi Committed by Android (Google) Code Review
Browse files

Merge "QSTileViewModelAdapter support DrawableIconWithRes" into main

parents cedec07d e7302dd7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -179,6 +179,7 @@ class AlarmTileMapperTest : SysuiTestCase() {
        val label = context.getString(R.string.status_bar_alarm)
        return QSTileState(
            { Icon.Loaded(context.getDrawable(R.drawable.ic_alarm)!!, null) },
            R.drawable.ic_alarm,
            label,
            activationState,
            secondaryLabel,
+1 −0
Original line number Diff line number Diff line
@@ -254,6 +254,7 @@ class BatterySaverTileMapperTest : SysuiTestCase() {
        val label = context.getString(R.string.battery_detail_switch_title)
        return QSTileState(
            { Icon.Loaded(context.getDrawable(iconRes)!!, null) },
            iconRes,
            label,
            activationState,
            secondaryLabel,
+1 −0
Original line number Diff line number Diff line
@@ -78,6 +78,7 @@ class ColorCorrectionTileMapperTest : SysuiTestCase() {
        val label = context.getString(R.string.quick_settings_color_correction_label)
        return QSTileState(
            { Icon.Loaded(context.getDrawable(R.drawable.ic_qs_color_correction)!!, null) },
            R.drawable.ic_qs_color_correction,
            label,
            activationState,
            secondaryLabel,
+1 −0
Original line number Diff line number Diff line
@@ -245,6 +245,7 @@ class CustomTileMapperTest : SysuiTestCase() {
    ): QSTileState {
        return QSTileState(
            { icon?.let { com.android.systemui.common.shared.model.Icon.Loaded(icon, null) } },
            null,
            "test label",
            activationState,
            "test subtitle",
+1 −0
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@ class FontScalingTileMapperTest : SysuiTestCase() {
                    null
                )
            },
            R.drawable.ic_qs_font_scaling,
            context.getString(R.string.quick_settings_font_scaling_label),
            QSTileState.ActivationState.ACTIVE,
            null,
Loading