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

Commit 7c3ca93d authored by William Leshner's avatar William Leshner Committed by Android (Google) Code Review
Browse files

Merge "Fix a bug with showing the widget picker on edit activity launch." into main

parents b3832ed8 1f00a70a
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -154,6 +154,13 @@ constructor(
                // edit mode
                communalViewModel.currentScene.first { it == CommunalScenes.Blank }
                communalViewModel.setEditModeState(EditModeState.SHOWING)

                // Show the widget picker, if necessary, after the edit activity has animated in.
                // Waiting until after the activity has appeared avoids transitions issues.
                if (shouldOpenWidgetPickerOnStart) {
                    onOpenWidgetPicker()
                    shouldOpenWidgetPickerOnStart = false
                }
            }
        }
    }
@@ -198,11 +205,6 @@ constructor(

        communalViewModel.setEditActivityShowing(true)

        if (shouldOpenWidgetPickerOnStart) {
            onOpenWidgetPicker()
            shouldOpenWidgetPickerOnStart = false
        }

        logger.i("Starting the communal widget editor activity")
        uiEventLogger.log(CommunalUiEvent.COMMUNAL_HUB_EDIT_MODE_SHOWN)
    }