diff options
author | Riddle Hsu <riddlehsu@google.com> | 2020-05-20 18:23:49 +0800 |
---|---|---|
committer | Riddle Hsu <riddlehsu@google.com> | 2020-05-25 23:29:51 +0800 |
commit | f9fb7e7b2f994315de3cd976e45e319b4bbf7ade (patch) | |
tree | 39716a1b05396ff3ea2808ee52b33ed0ff2bc879 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 92d678d8ad4ad579b039b15e1b56dea5ed39c9ad (diff) |
Fix size compat bounds in close-to-square display
DisplayContent#ignoreRotationForApps does not mean the display
cannot rotate. It means that the display can rotate without
considering the orientation requested by application. Currently
the case is that the aspect ratio of display is close to square.
Originally if the close-to-square display is rotated, an activity
with fixed aspect ratio will still use non-rotated bounds that
causes unexpected scaling. This change makes the case calculate
the bounds by current rotation.
Fixes: 156543028
Test: SizeCompatTests#testFixedAspectRatioBoundsWithDecorInSquareDisplay
Change-Id: Id22522f9a142806a922f643f4802971df302dadb
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions