commit | c545ce99d147cbb0a2808a20d501bd42d223fd81 | [log] [tgz] |
---|---|---|
author | Riddle Hsu <riddlehsu@google.com> | Thu Nov 02 20:57:39 2023 +0800 |
committer | Riddle Hsu <riddlehsu@google.com> | Fri Nov 03 21:50:41 2023 +0800 |
tree | 0049bc1f3d349939a9472185827994fe4f2774c8 | |
parent | 488eb9856a19aa14faaaca1ae056d960531278d3 [diff] |
Compute configuration orientation by available screen size It aligns the same calculation as TaskFragment#computeConfigResourceOverrides. Otherwise when the display size is close to square and there are decor windows, the configuration of activity and non-activity component will be inconsistent. Bug: 233855302 Test: atest DisplayContentTests#testOrientationForAspectRatio Change-Id: If6a1d5e28b51b14a2d154872b3e65f6b3c82c101