commit | 92407600537e4144ead06b20524c049e5cdd6af2 | [log] [tgz] |
---|---|---|
author | Beverly <beverlyt@google.com> | Thu Jul 18 17:01:58 2024 +0000 |
committer | Beverly <beverlyt@google.com> | Thu Jul 18 17:04:18 2024 +0000 |
tree | eacad71aed869351391d04c26a5dd6e54eed4283 | |
parent | 93d3f9a93d3aaa27fda4bde86851ca01fa9e1466 [diff] |
[flexiglass] runPostCollapseActions from the main thread Avoids a fatal exception that gets thrown downstream when running the action from a background thread. Bug: 308819693 Test: atest ShadeControllerSceneImplTest Test: tap on a notification from the shade over the lockscreen; observe no crash Flag: com.android.systemui.scene_container Change-Id: If79e3485c42f3ae4ecfa2bcd11e181941a7b862a
diff --git a/packages/SystemUI/src/com/android/systemui/shade/ShadeControllerSceneImpl.kt b/packages/SystemUI/src/com/android/systemui/shade/ShadeControllerSceneImpl.kt index 5065baa..23e2620 100644 --- a/packages/SystemUI/src/com/android/systemui/shade/ShadeControllerSceneImpl.kt +++ b/packages/SystemUI/src/com/android/systemui/shade/ShadeControllerSceneImpl.kt
@@ -76,7 +76,7 @@ scope.launch { shadeInteractor.isAnyExpanded.collect { if (!it) { - runPostCollapseActions() + withContext(mainDispatcher) { runPostCollapseActions() } } } }