summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Aurélien Pomini <pomini@google.com> 2024-03-26 18:04:23 +0000
committer Aurélien Pomini <pomini@google.com> 2024-04-05 15:09:16 +0000
commit2e8d81ad12aa4705bc129ea85d25d78c8faca244 (patch)
tree09aa2d4c3bf6d2bb846dc0cbf96aa61b380b1e45 /libs/androidfw/StringPool.cpp
parent2c11e704ff70ead75f0df32846bbce31cb3b9098 (diff)
Improve default crops on tablet
The fix is pretty targeted: only for tablets (not foldable), only when we're trying to figure out the crop on portrait. This only applies when there are no suggested crops: on Pixel it will mostly affect the default wallpaper. The specs are: - first compute the crop on landscape (left-aligned) - if there is parallax, compute the crop without parallax - the crop on portrait is the largest crop with the same center as the computed crop on landscape. - add parallax to the portrait crop so that its virtual right-end (or left-end if RTL) is the same as the crop on landscape I think this should work well on all cases (even if the full image is not landscape). Flag: ACONFIG com.android.window.flags.multi_crop TEAMFOOD Bug: 266594282 Test: manual debug Test: atest WallpaperCropperTest Test: atest WallpaperManagerTest Change-Id: I3a842a4dffd4e298ef364700706bd7f4682a75dc
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions