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

Commit cf313aaa authored by Aran Ink's avatar Aran Ink
Browse files

Disable overflow menu on lock screen.

Test: Manual -- overflow menu does not appear when power menu launched from keyguard. All items appear in one row.

Fixes: 154441764
Change-Id: I5430b08749603e9d4fcbbbedeeb9644966235d1d
parent 6560ab75
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -479,7 +479,8 @@ public class GlobalActionsDialog implements DialogInterface.OnDismissListener,
     */
    @VisibleForTesting
    protected int getMaxShownPowerItems() {
        if (shouldUseControlsLayout()) {
        // TODO: Overflow disabled on keyguard while we solve for touch blocking issues.
        if (shouldUseControlsLayout() && !mKeyguardShowing) {
            return mResources.getInteger(com.android.systemui.R.integer.power_menu_max_columns);
        } else {
            return Integer.MAX_VALUE;