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

Commit 00200c99 authored by Aran Ink's avatar Aran Ink
Browse files

Dismiss all dropdown windows when power menu is rotated.

Fixes: 156270530
Test: Manual -- dropdown windows (power overflow, add controls, wallet overflow) disappear when rotating.
Change-Id: I43a7229e485b13bc4737cd7997574deedafd9576
parent f633705a
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2340,6 +2340,14 @@ public class GlobalActionsDialog implements DialogInterface.OnDismissListener,
        }

        public void refreshDialog() {
            // ensure dropdown menus are dismissed before re-initializing the dialog
            dismissPanel();
            dismissOverflow(true);
            if (mControlsUiController != null) {
                mControlsUiController.hide();
            }

            // re-create dialog
            initializeLayout();
            mGlobalActionsLayout.updateList();
            if (mControlsUiController != null) {