[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() }
                 }
             }
         }