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