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

Fix mis-overridden of activity level unifying

- AWT#inSizeCompatMode is overridden by ActivityRecord but they
  were used for different purposes.
- Add missing ConfigurationContainerListener of display level.
  So the configuration got from ActivityRecord#getParent (Task)
  is synced with TaskRecord.
- Initial Task with TaskRecord's resolved configuration instead.
  That avoids the orientation being locked.

Bug: 80414790
Test: atest AppWindowTokenTests#testSizeCompatBounds
Test: Launch an unresizable portrait activity, after calling
      setRequestedOrientation to rotate, the restart button
      won't appear.
Test: 1. Enter split-screen in portrait.
      2. Finish the activity in secondary.
      3. Launch the same activity from recents.
      4. Drag divider to top.
      5. Check the orientation is still portrait.

Change-Id: Ib3b54a74e98d1e85ea4f7707f17bac51d6dbe21b
parent d1549d24
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