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

Skip to content
Commit 7b2419c7 authored by mattsziklay's avatar mattsziklay
Browse files

Add WindowManagerWrapper class to window decor classes.

The ADDITIONAL_WINDOWS_ABOVE_STATUS_BAR flag currently breaks several
tests due to the app handle using the flag and requiring MONITOR_INPUT
permission due to being a spy window.

This CL changes the method of retrieval of the system WindowManager
service by using a wrapper of the system WindowManager rather than
fetching it directly when needed. This allows us to provide a mock for
tests so we can avoid running into the above permission issue.

Bug: 361411076
Test: atest DesktopModeWindowDecorationTests, HandleMenuTest,
AdditionalSystemViewContainerTest, manual
Flag: EXEMPT bugfix

Change-Id: I3a45a46fe980f409cb8392a2a508ca3c7fb26c89
parent 897a3525
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