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