diff options
| author | 2025-03-04 09:20:46 -0800 | |
|---|---|---|
| committer | 2025-03-04 09:20:46 -0800 | |
| commit | 7572fb79f5ff208dae580170e0f977db0ab9c90d (patch) | |
| tree | d0aca4d3fc9ecd5d6d586b287fa2beedc46a30f4 | |
| parent | 87094c4defa4f579124c8f4ee290dd32b5d309ae (diff) | |
| parent | 45e76e532b806febf103ca92e2580b47678437a3 (diff) | |
Merge "Minor ktfmt fixes after recent refactor" into main
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) ) } } |