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

Skip to content
Commit 0b0c24c5 authored by Nicolo' Mazzucato's avatar Nicolo' Mazzucato Committed by Nicolò Mazzucato
Browse files

Use reparentToDisplayId to move the shade between displays

This uses the new API from display manager to reparent non-activity
windows without triggering onAttached/Detached.

As SysUI heavily relies on getting those callbacks only once (for some
windows), this makes the flexiglass refactor work without additional
changes even when the shade window moves.

Also, the shade move is much faster now: from the 600ms of the previous
approach to the <100ms of the current one (as all "onAttached" callbacks
are not being triggered)

After the change of window, only a configuration change in the shade
root view is received now, and propagated though configurationForwarder
to the other classes interested.

Bug: 362719719
Bug: 381258683
Bug: 381075014
Test: ShadeDisplaysInteractorTest
Flag: com.android.systemui.shade_window_goes_around
Flag: com.android.window.flags.reparent_window_token_api
Change-Id: I85dbc219eea894ec5c9e81fe378cdd5cc361cfde
parent 5054fff0
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