Merge "ImageWallpaper density and bug fix" into sc-dev
This commit is contained in:
@@ -198,8 +198,8 @@ public class ImageWallpaper extends WallpaperService {
|
|||||||
}
|
}
|
||||||
mImgHeight = b.getHeight();
|
mImgHeight = b.getHeight();
|
||||||
mImgWidth = b.getWidth();
|
mImgWidth = b.getWidth();
|
||||||
mMiniBitmap = Bitmap.createScaledBitmap(b, Math.round(scale * b.getWidth()),
|
mMiniBitmap = Bitmap.createScaledBitmap(b, (int) Math.ceil(scale * b.getWidth()),
|
||||||
Math.round(scale * b.getHeight()), false);
|
(int) Math.ceil(scale * b.getHeight()), false);
|
||||||
computeAndNotifyLocalColors(mLocalColorsToAdd, mMiniBitmap);
|
computeAndNotifyLocalColors(mLocalColorsToAdd, mMiniBitmap);
|
||||||
mLocalColorsToAdd.clear();
|
mLocalColorsToAdd.clear();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user