diff options
author | Christopher Tate <ctate@google.com> | 2012-09-07 15:00:54 -0700 |
---|---|---|
committer | Christopher Tate <ctate@google.com> | 2012-09-07 15:00:54 -0700 |
commit | 62df6eb5081fbb66d9245626e8c91497431040e4 (patch) | |
tree | c63577feeef65ba2b0fbaa49a2c2314046e648ce /services/java/com/android/server/DevicePolicyManagerService.java | |
parent | c0be8c85b09002359adb1fb20f2bf08e6983d146 (diff) |
Refer to STAY_ON_WHILE_PLUGGED_IN via the Global namespace
It moved from System to Global, so writes are not automatically redirected
to the new namespace (else apps would start crashing).
Bug 7126575
Change-Id: Ief31fcb5a6107a098da04d30d146e16921dee776
Diffstat (limited to 'services/java/com/android/server/DevicePolicyManagerService.java')
-rw-r--r-- | services/java/com/android/server/DevicePolicyManagerService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/java/com/android/server/DevicePolicyManagerService.java b/services/java/com/android/server/DevicePolicyManagerService.java index 61517b11fac8..fd6060a7b8e8 100644 --- a/services/java/com/android/server/DevicePolicyManagerService.java +++ b/services/java/com/android/server/DevicePolicyManagerService.java @@ -1628,8 +1628,8 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { } else { // Make sure KEEP_SCREEN_ON is disabled, since that // would allow bypassing of the maximum time to lock. - Settings.System.putInt(mContext.getContentResolver(), - Settings.System.STAY_ON_WHILE_PLUGGED_IN, 0); + Settings.Global.putInt(mContext.getContentResolver(), + Settings.Global.STAY_ON_WHILE_PLUGGED_IN, 0); } mLastMaximumTimeToLock = timeMs; |