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

Skip to content
Commit c2ec6faa authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent 642bdb48
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