diff options
3 files changed, 3 insertions, 9 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/model/SysUIStateDispatcher.kt b/packages/SystemUI/src/com/android/systemui/model/SysUIStateDispatcher.kt index f95ae2501acb..2bdd9a88ad6c 100644 --- a/packages/SystemUI/src/com/android/systemui/model/SysUIStateDispatcher.kt +++ b/packages/SystemUI/src/com/android/systemui/model/SysUIStateDispatcher.kt @@ -55,7 +55,7 @@ class SysUIStateDispatcher @Inject constructor() { /** Called from each [SysUiState] to propagate new state changes. */ fun dispatchSysUIStateChange(sysUiFlags: Long, displayId: Int) { - if (displayId != Display.DEFAULT_DISPLAY && !ShadeWindowGoesAround.isEnabled) return; + if (displayId != Display.DEFAULT_DISPLAY && !ShadeWindowGoesAround.isEnabled) return listeners.forEach { listener -> listener.onSystemUiStateChanged(sysUiFlags = sysUiFlags, displayId = displayId) } diff --git a/packages/SystemUI/tests/src/com/android/systemui/recents/LauncherProxyServiceTest.kt b/packages/SystemUI/tests/src/com/android/systemui/recents/LauncherProxyServiceTest.kt index 0a5efb7bb286..2d3f538689b3 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/recents/LauncherProxyServiceTest.kt +++ b/packages/SystemUI/tests/src/com/android/systemui/recents/LauncherProxyServiceTest.kt @@ -162,8 +162,7 @@ class LauncherProxyServiceTest : SysuiTestCase() { wakefulnessLifecycle.dispatchFinishedGoingToSleep() clearInvocations(launcherProxy) - wakefulnessLifecycle - .dispatchFinishedWakingUp() + wakefulnessLifecycle.dispatchFinishedWakingUp() verify(launcherProxy) .onSystemUiStateChanged( diff --git a/packages/SystemUI/tests/utils/src/com/android/systemui/model/SysUiStateKosmos.kt b/packages/SystemUI/tests/utils/src/com/android/systemui/model/SysUiStateKosmos.kt index 848fed6b0590..11bd4c7b7940 100644 --- a/packages/SystemUI/tests/utils/src/com/android/systemui/model/SysUiStateKosmos.kt +++ b/packages/SystemUI/tests/utils/src/com/android/systemui/model/SysUiStateKosmos.kt @@ -32,12 +32,7 @@ val Kosmos.sysUiStateFactory by Fixture { object : SysUiStateImpl.Factory { override fun create(displayId: Int): SysUiStateImpl { return spy( - SysUiStateImpl( - displayId, - sceneContainerPlugin, - dumpManager, - sysUIStateDispatcher, - ) + SysUiStateImpl(displayId, sceneContainerPlugin, dumpManager, sysUIStateDispatcher) ) } } |