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

Commit dc165631 authored by Steve Elliott's avatar Steve Elliott
Browse files

Only use grid layout for power menu when wallet is visible

Fixes: 133426008
Test: manual
Change-Id: I55d46f16feb71e4b6733706e0ebaf154e1ca074e
parent 3d8f95a4
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1631,8 +1631,10 @@ public class GlobalActionsDialog implements DialogInterface.OnDismissListener,
        }

        private int getGlobalActionsLayoutId(Context context) {
            boolean useGridLayout = isForceGridEnabled(context) || shouldUsePanel();
            if (RotationUtils.getRotation(context) == RotationUtils.ROTATION_SEASCAPE) {
            int rotation = RotationUtils.getRotation(context);
            boolean useGridLayout = isForceGridEnabled(context)
                    || (shouldUsePanel() && rotation == RotationUtils.ROTATION_NONE);
            if (rotation == RotationUtils.ROTATION_SEASCAPE) {
                if (useGridLayout) {
                    return com.android.systemui.R.layout.global_actions_grid_seascape;
                } else {