summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Aurélien Pomini <pomini@google.com> 2024-08-14 13:43:48 +0000
committer Aurélien Pomini <pomini@google.com> 2024-08-15 16:21:29 +0000
commit947b7f49e9e7e80f3be8c06b0cd2b13c27737496 (patch)
tree5431cd435eb72237233e16f1eaffd3b52291d4b7 /api/api_test.go
parent90e48229533d1d11a7f64e078ed65142e3a38f9c (diff)
Create and use peekBitmapDimensionsAsUser in ImageWallpaper
Exactly like ImageWallpaper uses WallpaperManager.getBitmapAsUser, it should specify the userId when peeking the bitmap dimensions. This is because SystemUI's context.getUserId() returns 0 in HSUM mode, even if the current user is the user 10, resulting in wrong bitmap dimensions. This is fixed under flag: without multi-crop, setting an zoomed image on tablet seems broken regardless of whether this fix is included. Thus, it felt more logical to include this fix in the multi-crop flag and ignore the previous version. Flag: com.android.window.flags.multi_crop Test: manually verified the HSUM bug Bug: 358567206 Change-Id: I1e5ca70a0f5331f6bca55baf9c66296531cee5d8
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions