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

Skip to content
Commit 33115b5f authored by Nicolo' Mazzucato's avatar Nicolo' Mazzucato
Browse files

Capture screenshots from all displays (flag-guarded)

This changes TakeScreenshotService to gather screenshots from all
(not-virtual) connected displays when a SystemUI flag is enabled.
System server part of the screenshot flow is unchanged.

When the `multi_display_screenshot` sysui flag is enabled, one
screenshot is captured for each display, and the UI is shown accordingly
in every display. This results in different files being saved.

When the flag is disabled, the previous behaviour is left unchanged.

ScreenshotController has been been slighly refactored to be per-display.
When the flag is disabled, only the controller for the default display
is created.

There is some minimal duplication of code related to UiEventLogger that
can be removed when the flag is enabled.

Test: TakeScreenshotServiceTest, TakeScreenshotExecutorTest, ConnectedDisplayInteractorTest, ScreenshotDataTest
Bug: 290910794
Bug: 295143676
Change-Id: I24bd6436d346c2cbd5dcdc201d01c8aabb09bc17
parent fa5fc1e3
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