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

Commit 372f27ee authored by Miranda Kephart's avatar Miranda Kephart
Browse files

Use DisplayManager to retrieve displays to screenshot

DisplayRepository doesn't seem to update its cache correctly when the
list of available displays changes (possibly due to screenshots being in
a separate process). Switching to Display Manager fixes the issue,
ensuring that we get the correct focused display in multiwindow mode.

Bug: 423959791
Test: manual (using simulated external displays),
TakeScreenshotExecutorTest
Flag: com.android.systemui.screenshot_multidisplay_focus_change

Change-Id: Ic4c2f6aa214b1176408dfdf437cbafcf838779ff
parent 9ee8f8f2
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