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

Cache set wallpaper as PNG instead of JPEG

JPEG is a lossy image format: if image bytes are encoded to JPEG, then
the JPEG is decoded to image bytes, those bytes will _always_ differ
from the original bytes.

Caching as PNG ensures that the same colors will be extracted from the
wallpaper as were displayed in the Wallpaper Picker preview using
WallpaperColors.fromBitmap. Otherwise, the cached wallpaper differs from
the bitmap used with WallpaperColors.fromBitmap for the preview in
wallpaper picker.

Bug: 189931209
Test: Test tons and tons of wallpapers over a couple days.
Change-Id: Ifc451f540d5e944055a5e0fb4be6a79c4bd5a939
parent 1a3245d5
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