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

Commit 2d6c5198 authored by Evan Laird's avatar Evan Laird
Browse files

[shade] add stacked_mobile to the list of hidden icons

This makes sure that the stacked dual-SIM icon is also hidden in the
shade header just like the regular mobile icons are.

Test: manual
Bug: 402663625
Flag: com.android.settingslib.flags.new_status_bar_icons
Change-Id: I54ad74a89afeb5ed0e7488a5fd4ab20e8ff54e45
parent b9a00040
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -293,11 +293,7 @@ fun ContentScope.OverlayShadeHeader(
    viewModel: ShadeHeaderViewModel,
    modifier: Modifier = Modifier,
) {
    OverlayShadeHeaderPartialStateless(
        viewModel,
        viewModel.showClock,
        modifier,
    )
    OverlayShadeHeaderPartialStateless(viewModel, viewModel.showClock, modifier)
}

/**
@@ -634,7 +630,10 @@ private fun ContentScope.StatusIcons(
        Utils.getColorAttrDefaultColor(themedContext, android.R.attr.textColorPrimaryInverse)

    val carrierIconSlots =
        listOf(stringResource(id = com.android.internal.R.string.status_bar_mobile))
        listOf(
            stringResource(id = com.android.internal.R.string.status_bar_mobile),
            stringResource(id = com.android.internal.R.string.status_bar_stacked_mobile),
        )
    val cameraSlot = stringResource(id = com.android.internal.R.string.status_bar_camera)
    val micSlot = stringResource(id = com.android.internal.R.string.status_bar_microphone)
    val locationSlot = stringResource(id = com.android.internal.R.string.status_bar_location)
+4 −1
Original line number Diff line number Diff line
@@ -381,7 +381,10 @@ constructor(
        }

        carrierIconSlots =
            listOf(header.context.getString(com.android.internal.R.string.status_bar_mobile))
            listOf(
                header.context.getString(com.android.internal.R.string.status_bar_mobile),
                header.context.getString(com.android.internal.R.string.status_bar_stacked_mobile),
            )
        mShadeCarrierGroupController =
            shadeCarrierGroupControllerBuilder.setShadeCarrierGroup(mShadeCarrierGroup).build()

+4 −1
Original line number Diff line number Diff line
@@ -216,7 +216,10 @@ class ShadeHeaderControllerTest : SysuiTestCase() {
        whenever(view.isAttachedToWindow).thenReturn(true)
        shadeHeaderController.init()
        carrierIconSlots =
            listOf(context.getString(com.android.internal.R.string.status_bar_mobile))
            listOf(
                context.getString(com.android.internal.R.string.status_bar_mobile),
                context.getString(com.android.internal.R.string.status_bar_stacked_mobile),
            )
    }

    @Test