Notify config changes caused orientation changes
When windowing mode changes the requested orientation of tasks can change as well so let's notify upward the hierarchy if it does. In RVC we also added a special logic for display rotation when PIP is enabled which I encapsulated here too. Also change the check of matchParentsBounds() to check resolved bounds because when a freeform task is maximized its requested bounds are still preserved, but resolved bounds are empty (if not letterboxed). Addtionally it cleans up some usage of matchParentsBounds(). Note this CL doesn't fix the case where the requested orientation isn't reported if the task is letterboxed. Bug: 156423660 Test: orientation change is notified when it changes. Test: WM smoke tests. Test: atest TaskRecordTests Test: atest DisplayContentTests#testNoFixedRotationWithPip Change-Id: Ieeb638a54441071754943f18eef74572e95f90db
Loading
Please register or sign in to comment