Skip to content
Commit ecb8654a authored by James O'Leary's avatar James O'Leary
Browse files

Only rescale wallpaper if its > display height

WallpaperPicker assigns wallpapers, this code caches them.
The assigned wallpaper is ~always slightly smaller than the display size
There's no need to scale _up_ the assigned wallpaper, it will only
permanently introduce scaling artifacts while increasing the amount of
storage required to store the wallpaper.
Most importantly, it creates an inconsistency between the colors
WallpaperColors.fromBitmap returns, and the WallpaperColors returned
by the system from the cached copy. This causes a large problem for
dynamic color, as it means the colors displayed in Wallpaper Picker
will differ from the colors actually extracted by the system.

Bug: 189931209
Test: Test tons and tons of wallpapers over a couple days.
Change-Id: I041d68bf057b24cf4dad677ed403a1c2e67904dc
parent cdbc555a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment