Loading packages/SystemUI/src/com/android/systemui/shade/ShadeHeaderController.kt +2 −1 Original line number Diff line number Diff line Loading @@ -194,6 +194,7 @@ constructor( if (qsVisible && field != value) { header.alpha = ShadeInterpolation.getContentAlpha(value) field = value updateIgnoredSlots() } } Loading Loading @@ -538,7 +539,7 @@ constructor( private fun updateIgnoredSlots() { // switching from QQS to QS state halfway through the transition if (singleCarrier || qsExpandedFraction < 0.5) { if (singleCarrier || (!largeScreenActive && qsExpandedFraction < 0.5)) { iconContainer.removeIgnoredSlots(carrierIconSlots) } else { iconContainer.addIgnoredSlots(carrierIconSlots) Loading packages/SystemUI/tests/src/com/android/systemui/shade/ShadeHeaderControllerTest.kt +4 −4 Original line number Diff line number Diff line Loading @@ -244,23 +244,23 @@ class ShadeHeaderControllerTest : SysuiTestCase() { } @Test fun dualCarrier_disablesCarrierIconsInStatusIcons() { fun dualCarrier_disablesCarrierIconsInStatusIcons_qs() { whenever(mShadeCarrierGroupController.isSingleCarrier).thenReturn(false) makeShadeVisible() shadeHeaderController.qsExpandedFraction = 1.0f verify(statusIcons).addIgnoredSlots(carrierIconSlots) verify(statusIcons, times(2)).addIgnoredSlots(carrierIconSlots) } @Test fun dualCarrier_enablesCarrierIconsInStatusIcons_qsExpanded() { fun dualCarrier_disablesCarrierIconsInStatusIcons_qqs() { whenever(mShadeCarrierGroupController.isSingleCarrier).thenReturn(false) makeShadeVisible() shadeHeaderController.qsExpandedFraction = 0.0f verify(statusIcons, times(2)).removeIgnoredSlots(carrierIconSlots) verify(statusIcons, times(2)).addIgnoredSlots(carrierIconSlots) } @Test Loading Loading
packages/SystemUI/src/com/android/systemui/shade/ShadeHeaderController.kt +2 −1 Original line number Diff line number Diff line Loading @@ -194,6 +194,7 @@ constructor( if (qsVisible && field != value) { header.alpha = ShadeInterpolation.getContentAlpha(value) field = value updateIgnoredSlots() } } Loading Loading @@ -538,7 +539,7 @@ constructor( private fun updateIgnoredSlots() { // switching from QQS to QS state halfway through the transition if (singleCarrier || qsExpandedFraction < 0.5) { if (singleCarrier || (!largeScreenActive && qsExpandedFraction < 0.5)) { iconContainer.removeIgnoredSlots(carrierIconSlots) } else { iconContainer.addIgnoredSlots(carrierIconSlots) Loading
packages/SystemUI/tests/src/com/android/systemui/shade/ShadeHeaderControllerTest.kt +4 −4 Original line number Diff line number Diff line Loading @@ -244,23 +244,23 @@ class ShadeHeaderControllerTest : SysuiTestCase() { } @Test fun dualCarrier_disablesCarrierIconsInStatusIcons() { fun dualCarrier_disablesCarrierIconsInStatusIcons_qs() { whenever(mShadeCarrierGroupController.isSingleCarrier).thenReturn(false) makeShadeVisible() shadeHeaderController.qsExpandedFraction = 1.0f verify(statusIcons).addIgnoredSlots(carrierIconSlots) verify(statusIcons, times(2)).addIgnoredSlots(carrierIconSlots) } @Test fun dualCarrier_enablesCarrierIconsInStatusIcons_qsExpanded() { fun dualCarrier_disablesCarrierIconsInStatusIcons_qqs() { whenever(mShadeCarrierGroupController.isSingleCarrier).thenReturn(false) makeShadeVisible() shadeHeaderController.qsExpandedFraction = 0.0f verify(statusIcons, times(2)).removeIgnoredSlots(carrierIconSlots) verify(statusIcons, times(2)).addIgnoredSlots(carrierIconSlots) } @Test Loading