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

Skip to content
Commit ba9b9b7c authored by Evan Rosky's avatar Evan Rosky
Browse files

Restore direct display children to windowing layer

On virtual displays, there is no magnification DA, so TDA
is a direct child of DisplayContent. However, DC *still* makes
a root-wrapper surface in this case, so we have to restore to
DC.getWindowingLayer() instead of DC.getSurfaceControl() since
mSurfaceControl gets replaced after construction.

Added a comment in makeChildSurface to explain that the
mSurfaceControl used there is not the same after construction so
that others will hopefully be less confused by this.

Bug: 266243524
Test: AccessibilityOverlayTest#testA11yServiceShowsOverlayOnVirtualDisplay_shouldAppear
Change-Id: I78d4832b0ff7623684fc22fe1f464a02a1d91477
parent 79dbc1af
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