We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c02632 + 62df6eb commit d6a53c3Copy full SHA for d6a53c3
services/java/com/android/server/DevicePolicyManagerService.java
@@ -1628,8 +1628,8 @@ void updateMaximumTimeToLockLocked() {
1628
} else {
1629
// Make sure KEEP_SCREEN_ON is disabled, since that
1630
// would allow bypassing of the maximum time to lock.
1631
- Settings.System.putInt(mContext.getContentResolver(),
1632
- Settings.System.STAY_ON_WHILE_PLUGGED_IN, 0);
+ Settings.Global.putInt(mContext.getContentResolver(),
+ Settings.Global.STAY_ON_WHILE_PLUGGED_IN, 0);
1633
}
1634
1635
mLastMaximumTimeToLock = timeMs;
0 commit comments