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

Commit 31b3161a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents 31829672 dc165631
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 {