Fix 2579224: Add a separate timeout for lockscreen vs display
This change adds a second timeout to the SecuritySettings page separate from the standard display timeout. Change-Id: I41fe10e31688308f52695ad3ee30a4b0507112bd
This commit is contained in:
@@ -2456,7 +2456,8 @@ class PowerManagerService extends IPowerManager.Stub
|
||||
}
|
||||
mKeylightDelay = LONG_KEYLIGHT_DELAY;
|
||||
if (totalDelay < 0) {
|
||||
mScreenOffDelay = Integer.MAX_VALUE;
|
||||
// negative number means stay on as long as possible.
|
||||
mScreenOffDelay = mMaximumScreenOffTimeout;
|
||||
} else if (mKeylightDelay < totalDelay) {
|
||||
// subtract the time that the keylight delay. This will give us the
|
||||
// remainder of the time that we need to sleep to get the accurate
|
||||
|
||||
Reference in New Issue
Block a user