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

Commit eef3c9eb authored by Olivier St-Onge's avatar Olivier St-Onge
Browse files

Close edit mode when the QS is not fully expanded

Test: manually on tablet -- opening edit mode and rotating device
Flag: com.android.systemui.qs_ui_refactor_compose_fragment
Fixes: 411566458
Change-Id: I5c471b7fcabc397cb2d07d986d656c9f5f31aa91
parent 921f2de4
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -363,6 +363,14 @@ constructor(
                        }
                }
            }
            launch {
                snapshotFlow { viewModel.isQsFullyExpanded }
                    .collect {
                        if (!it && viewModel.isEditing) {
                            viewModel.containerViewModel.editModeViewModel.stopEditing()
                        }
                    }
            }
        }

        SceneTransitionLayout(state = sceneState, modifier = Modifier.fillMaxSize()) {