Merge "Use Q=100 JPEG instead of PNG for wallpaper display" into nyc-dev
am: 79c8a1fdf7
* commit '79c8a1fdf73212d4f22a33f2e09455d7bb484c34':
Use Q=100 JPEG instead of PNG for wallpaper display
Change-Id: Ib60e0ec864d6cabf90f054772114760352682ff5
This commit is contained in:
@@ -432,7 +432,7 @@ public class WallpaperManagerService extends IWallpaperManager.Stub {
|
||||
|
||||
f = new FileOutputStream(wallpaper.cropFile);
|
||||
bos = new BufferedOutputStream(f, 32*1024);
|
||||
finalCrop.compress(Bitmap.CompressFormat.PNG, 90, bos);
|
||||
finalCrop.compress(Bitmap.CompressFormat.JPEG, 100, bos);
|
||||
bos.flush(); // don't rely on the implicit flush-at-close when noting success
|
||||
success = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user