Merge "Use current user for lockdown setting" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2b9d205fbb
@@ -344,8 +344,8 @@ class GlobalActionsDialog implements DialogInterface.OnDismissListener,
|
|||||||
} else if (GLOBAL_ACTION_KEY_SETTINGS.equals(actionKey)) {
|
} else if (GLOBAL_ACTION_KEY_SETTINGS.equals(actionKey)) {
|
||||||
mItems.add(getSettingsAction());
|
mItems.add(getSettingsAction());
|
||||||
} else if (GLOBAL_ACTION_KEY_LOCKDOWN.equals(actionKey)) {
|
} else if (GLOBAL_ACTION_KEY_LOCKDOWN.equals(actionKey)) {
|
||||||
if (Settings.Secure.getInt(mContext.getContentResolver(),
|
if (Settings.Secure.getIntForUser(mContext.getContentResolver(),
|
||||||
Settings.Secure.LOCKDOWN_IN_POWER_MENU, 0) != 0
|
Settings.Secure.LOCKDOWN_IN_POWER_MENU, 0, getCurrentUser().id) != 0
|
||||||
&& shouldDisplayLockdown()) {
|
&& shouldDisplayLockdown()) {
|
||||||
mItems.add(getLockdownAction());
|
mItems.add(getLockdownAction());
|
||||||
mHasLockdownButton = true;
|
mHasLockdownButton = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user