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
Loading
Please register or sign in to comment