Make onFlip no-change-lights.
This ensures that flipping over a device does not brighten the display and it does not affect the attentive timeout. Bug: 234530184 Test: Manually test flipping over device Change-Id: I823440fd375999a67d25b5410d70e9622b1560b2
This commit is contained in:
@@ -1179,8 +1179,8 @@ public final class PowerManagerService extends SystemService
|
||||
millisUntilNormalTimeout =
|
||||
powerGroup.getLastUserActivityTimeLocked() + screenOffTimeout - currentTime;
|
||||
userActivityInternal(Display.DEFAULT_DISPLAY, currentTime,
|
||||
PowerManager.USER_ACTIVITY_EVENT_FACE_DOWN, /* flags= */0,
|
||||
Process.SYSTEM_UID);
|
||||
PowerManager.USER_ACTIVITY_EVENT_FACE_DOWN,
|
||||
PowerManager.USER_ACTIVITY_FLAG_NO_CHANGE_LIGHTS, Process.SYSTEM_UID);
|
||||
}
|
||||
}
|
||||
if (isFaceDown) {
|
||||
|
||||
Reference in New Issue
Block a user