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

Commit f1378742 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Ensure consistent surface visibility with window hierarchy

The candidates to update surface visibility:
- The visibility of activity or wallpaper is changed.
- All targets and participants of transition when the
  transition is finished.

And before applying surface visibility, it will check again to
skip if the window container is a participant of a collecting or
playing transition.

It would help:
- Reduce repeatedly visibility check in prepareSurface on every
  scheduled frame of WindowAnimator.
- Avoid disturbing visibility of container which is animating
  by shell transition.
- Avoid black screen, ANR, touch no response if any shell
  transition handler sets incorrect visibility.

mLastSurfaceShowing was no longer accurate since the surface
visibility can be set by WM shell.

Bug: 383241933
Flag: com.android.window.flags.respect_hierarchy_surface_visibility
Test: ActivityRecordTests
Change-Id: I616c2872baf9c3f1819f3a634e932b607891f5f6
parent 1b73388e
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