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

Skip to content
Commit b68749be authored by Yeabkal Wubshit's avatar Yeabkal Wubshit
Browse files

Remove theater-mode wake checks if screen is already on

The purpose of the theater-mode checks before the WindowWakeUpPolicy
wakes is to prevent the screen from turning ON while the user is in
theater mode (by extension, when the user is in an environment where
they do not want the screen to be ON).

Therefore, let's disable the theater-mode guards if a "wake" attempt is
being done while the screen is already ON.

Note that we flagged this new behavior with
FLAG_SUPPORT_INPUT_WAKEUP_DELEGATE, since the situation we're trying
to fix is relevant only when FLAG_SUPPORT_INPUT_WAKEUP_DELEGATE
is ON.

Flag: com.android.server.policy.support_input_wakeup_delegate
Bug: 333762937
Test: atest WindowWakeUpPolicyTests
Change-Id: I5804a5adfd51bed12ca02bc3fea13689adbd24a0
parent 697bd2a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment