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

Commit 1555d45c authored by Steve Elliott's avatar Steve Elliott Committed by android-build-merger
Browse files

Merge "Only use grid layout for power menu when wallet is visible" into qt-dev...

Merge "Only use grid layout for power menu when wallet is visible" into qt-dev am: 31b3161a am: 07733b7c
am: 3153b31a

Change-Id: I717fbc9ba901b124f83472945da6cbe0f886b891
parents 354ec18c 3153b31a
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 {