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

Commit 7ff7089e authored by Andy Wickham's avatar Andy Wickham Committed by Android Build Coastguard Worker
Browse files

Add displayId to WindowManagerPolicy#isScreenOn().

This allows certain flows to continue to work even if the default
display is off. For example, when taking an Assist screenshot for
Contextual Search, DisplayContent checks if the screen is on. This
previously only checked the default display, but now instead checks
the display where the search is invoked.

Fix: 441675960
Test: Connect phone to external display, wait for primary display to
time out, invoke Contextual Search on the external display.
Test: atest DisplayPolicyTests WindowManagerServiceTests
Flag: EXEMPT BUGFIX
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:d658f0f0c78d94b367f3056a84af1b3c95c4a21e
Merged-In: I21ae35333551e170127be546d1cc8ca09bad4448
Change-Id: I21ae35333551e170127be546d1cc8ca09bad4448
parent 1efe5fd7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment