Skip collecting wallpaper to transition for non collected app
Currently wallpaper is not fully handled by shell transition.
Because the wallpaper target can be any window that requests to
show wallpaper. And the window can be not handled by transition.
So the visibility change of wallpaper may come from legacy path.
Such as when launching app from home, the visibility change will
happen after the open transition is finished, i.e. home received
to stop or invisible (IWindow#dispatchAppVisibility). There are
2 possible entries to hide wallpaper:
WMS#relayoutWindow -> adjustWallpaperWindows
WindowStateAnimator#prepareSurfaceLocked -> hideWallpapers
If there is another transition starts before that, the wallpaper
will be collected into the unrelated transition.
Bug: 330457044
Test: atest ActivityTransitionTests# \
testCustomTransitionCanOverrideBackgroundColor
Test: Launch an activity from home, and it delay tens~hundred
millisecond to start next activity in the same task.
The second transition info should not contain wallpaper.
Change-Id: I07c887be55f4e0a20c92965ad5504e9c542bc8d3
1 file changed