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

Commit 33365431 authored by Coco Duan's avatar Coco Duan Committed by Android (Google) Code Review
Browse files

Merge "Set selected widget key for SwitchAccess edit widget action" into main

parents f2db7d41 41510b0c
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1451,7 +1451,6 @@ private fun WidgetContent(
        } else {
            Modifier
        }

    Box(
        modifier =
            modifier
@@ -1539,7 +1538,10 @@ private fun WidgetContent(
        with(widgetSection) {
            Widget(
                isFocusable = isFocusable,
                openWidgetEditor = { viewModel.onOpenWidgetEditor() },
                openWidgetEditor = {
                    viewModel.setSelectedKey(model.key)
                    viewModel.onOpenWidgetEditor()
                },
                model = model,
                size = size,
                modifier = Modifier.fillMaxSize().allowGestures(allowed = !viewModel.isEditMode),
@@ -1788,6 +1790,7 @@ fun AccessibilityContainer(viewModel: BaseCommunalViewModel, content: @Composabl
                            CustomAccessibilityAction(
                                context.getString(R.string.accessibility_action_label_edit_widgets)
                            ) {
                                viewModel.setSelectedKey(null)
                                viewModel.onOpenWidgetEditor()
                                true
                            },