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

Commit 7069335b 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

am: 31b3161a

Change-Id: Ic0aed5b75717acfe56fd5754582cab2c782b46d7
parents 05980bb2 31b3161a
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 {