Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 947b7f49 authored by Aurélien Pomini's avatar Aurélien Pomini
Browse files

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
parent 90e48229
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment