Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 94ff624c authored by Philip Junker's avatar Philip Junker
Browse files

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
parent 3e94f16e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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) {