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:
Philip Junker
2022-07-12 11:29:06 +02:00
parent 3e94f16e02
commit 94ff624c8a

View File

@@ -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) {