Skip to content

Commit 62df6eb

Browse files
author
Christopher Tate
committed
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
1 parent c0be8c8 commit 62df6eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/java/com/android/server/DevicePolicyManagerService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1628,8 +1628,8 @@ void updateMaximumTimeToLockLocked() {
16281628
} else {
16291629
// Make sure KEEP_SCREEN_ON is disabled, since that
16301630
// would allow bypassing of the maximum time to lock.
1631-
Settings.System.putInt(mContext.getContentResolver(),
1632-
Settings.System.STAY_ON_WHILE_PLUGGED_IN, 0);
1631+
Settings.Global.putInt(mContext.getContentResolver(),
1632+
Settings.Global.STAY_ON_WHILE_PLUGGED_IN, 0);
16331633
}
16341634

16351635
mLastMaximumTimeToLock = timeMs;

0 commit comments

Comments
 (0)