diff options
author | Riddle Hsu <riddlehsu@google.com> | 2020-06-15 16:48:19 +0800 |
---|---|---|
committer | Riddle Hsu <riddlehsu@google.com> | 2020-06-15 12:41:29 +0000 |
commit | 080ae841998502c709a9f2f4a2d0f44cd7c959a3 (patch) | |
tree | 398076fd31228f97635b1888eb98341447e40fda /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 6dca466770a982bcc34df7813a8f86532eeec4d4 (diff) |
Set pillar box bounds in fixed orientation display
Assume a non-resizable fixed portrait activity launched in a fixed
landscape display, the activity should keep its portrait bounds by
fitting the height to display and the width with the same ratio to
height. Previously the pillar box bounds are only set to app bounds
that causes the activity shown in landscape size compat mode. This
change makes them consistent.
Fixes: 158863196
Test: SizeCompatTests#testMoveToDifferentOrientDisplay
Change-Id: Ib7c2b07d9b252a88d2e965cc16ca93f7804b16d0
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions