Skip to content

Commit d6a53c3

Browse files
Christopher TateAndroid (Google) Code Review
authored andcommitted
Merge "Refer to STAY_ON_WHILE_PLUGGED_IN via the Global namespace" into jb-mr1-dev
2 parents 7c02632 + 62df6eb commit d6a53c3

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)