summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Oleg Blinnikov <olb@google.com> 2022-10-10 15:25:21 +0000
committer Oleg Blinnikov <olb@google.com> 2022-11-04 15:13:27 +0000
commit8e1ee5e500598669c03674a447e33c7bbc5a2c12 (patch)
tree154e84843c01a5b164e21087aab52ce9ed199cb2 /libs/androidfw/AssetsProvider.cpp
parent84e751f92dcda0b8e3fc9f983632e9a934a47c26 (diff)
Fix rounded corners cropping for letterbox
When using two apps in horizontal split-screen, taskbar is shown, and the bottom app is "portrait-only" and letterboxed, this bottom application is partially covered by taskbar. This is because, the top of taskbar is calculated relative to the whole screen, while cropBounds.offsetTo(0, 0) makes cropBounds coordinates relative to the lower part of the screen. Reordering the statements of "adjustment of crop bounds" and "offsetting coordinates" fixes this issue Change-Id: Id1ac9252fbf102e321a89330aefda9ca2624fe66 Merged-In: Id1ac9252fbf102e321a89330aefda9ca2624fe66 Test: atest SizeCompatTests Bug: 245521412
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions