Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a6a11712 authored by Garfield Tan's avatar Garfield Tan
Browse files

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
parent b70873a5
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