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

Defer committing visible until transition ready

So some logic depend on ActivityRecord#isVisible() won't be called
earlier before transition ready that may delay the animation.
Such as updateFocusedWindow in activityPaused and
updateSystemBarAttributes when starting window performs relayout.

Skip the assertion pipAppWindowAlwaysVisible for "swipe up and
fade in pip" because either "always visible" or "visible->invisible
->visible" is fine for internal state. The visual appearance is
still asserted by layer visibility.

Bug: 260059642
Test: TransitionTests#testIntermediateVisibility
Test: OpenAppMicrobenchmark with shell transition.

Change-Id: I4584880dd91f9b406bc5241a67eebae179a7fe40
parent 26ef4c4c
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