commit | c98a546bf603a301d5fc72009e41d57d37aafb60 | [log] [tgz] |
---|---|---|
author | Austin Wang <wangaustin@google.com> | Sat Dec 24 13:15:20 2022 +0800 |
committer | Austin Wang <wangaustin@google.com> | Wed Dec 28 12:53:06 2022 +0000 |
tree | 02697dad1cf22b6ea8bbb3e650bebaed78ba6d02 | |
parent | a7949c5cccb10b3122e2b398e2c3820ca24d8a51 [diff] |
Fix wallpaper preview misaligned on small screen. Center aligned the wallpaper surface so that the preview shows the center area of the wallpaper, and let the `getWallpaperDisplay()` actually returns the largest display. Still slightly misaligned if the wallpaper width is greater than height. E.g. The photo taken under landscape mode. Bug: 259745033 Test: Set wallpaper and observe the preview. Change-Id: Ib99c450d1c7fc9849b39598ed46f8aa33f4175a0