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

Commit c208182d authored by Alina Zaidi's avatar Alina Zaidi Committed by Android Build Coastguard Worker
Browse files

[Fix] Refresh icon groups when shade changes display.

This way it is made sure that IconManager#addIcon is called when shade
changes display.

This is required because icons like Zen(DnD) icon are FIXED_SIZED icons and require update on View LayoutParams when
shade changes display.

Bug:445347372
Bug: 439608295
Flag: EXEMPT BUGFIX
Test: mp droid and tested locally
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:484469ccbacbf6c3a694f5ec84198417064b0ca7
Merged-In: I9e50bed11333fd648fd995a29bb0752035aa4654
Change-Id: I9e50bed11333fd648fd995a29bb0752035aa4654
parent eead2d6b
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -328,6 +328,7 @@ constructor(
                        R.dimen.hover_system_icons_container_padding_bottom
                        R.dimen.hover_system_icons_container_padding_bottom
                    ),
                    ),
                )
                )
                statusBarIconController.refreshIconGroup(iconManager)
            }
            }


            override fun onDensityOrFontScaleChanged() {
            override fun onDensityOrFontScaleChanged() {
+7 −0
Original line number Original line Diff line number Diff line
@@ -911,6 +911,13 @@ class ShadeHeaderControllerTest : SysuiTestCase() {
        assertThat(captor.value.getResId()).isEqualTo(R.xml.large_screen_shade_header)
        assertThat(captor.value.getResId()).isEqualTo(R.xml.large_screen_shade_header)
    }
    }


    @Test
    fun onConfigChanged_refreshIconGroup() {
        configurationController.notifyConfigurationChanged()

        verify(statusBarIconController).refreshIconGroup(eq(iconManager))
    }

    @Test
    @Test
    fun carrierStartPaddingIsSetOnClockLayout() {
    fun carrierStartPaddingIsSetOnClockLayout() {
        val clockWidth = 200
        val clockWidth = 200