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

Remove window replacement

It is almost dead code because
- It was added for SurfaceView using a child window.
  But SurfaceView no longer uses a window for years.
- It only executes for 2 conditions:
  - Main window
    - For freeform, there was general change-transition which uses
      a screenshot of window container to animate.
    - For splitscreen, there is TaskOverlay to cover the change.
  - Child window (from ActivityThread r.mPreserveWindow)
    - Server side config change
      Always no-op because config change will clear drawn state
      and then WindowState#hasContentToDisplay return false that
      skips setWillReplaceWindow.
    - Client side calls Activity#recreate.
      But it usually only causes a removal timeout because app
      may not add the child window again.

So no case needs it anymore.

Bug: 163976519
Test: CtsActivityManagerDeviceTestCases

Change-Id: If78155ac453c02cda8bf448bb353061e861747fe
parent 4489eec9
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