Merge "Disable overflow menu on lock screen." into rvc-dev am: 126b567a6e am: dd472745e7 am: 1cf8d67bb8

Change-Id: Id8ee8a60644d1bb0510ea6aa6fef12ee11c9e5c0
This commit is contained in:
TreeHugger Robot
2020-04-21 20:24:57 +00:00
committed by Automerger Merge Worker

View File

@@ -482,7 +482,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;