mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
Fixing black lowres icons
Bug: 27598858 Change-Id: Ib7c9b1e3abe54b94741e154bc8327d06f83e439c
This commit is contained in:
@@ -800,7 +800,7 @@ public class IconCache {
|
||||
}
|
||||
|
||||
private static final class IconDB extends SQLiteCacheHelper {
|
||||
private final static int DB_VERSION = 7;
|
||||
private final static int DB_VERSION = 8;
|
||||
|
||||
private final static int RELEASE_VERSION = DB_VERSION +
|
||||
(FeatureFlags.LAUNCHER3_DISABLE_ICON_NORMALIZATION ? 0 : 1);
|
||||
@@ -859,6 +859,7 @@ public class IconCache {
|
||||
Bitmap lowResIcon = Bitmap.createBitmap(icon.getWidth() / LOW_RES_SCALE_FACTOR,
|
||||
icon.getHeight() / LOW_RES_SCALE_FACTOR, Bitmap.Config.RGB_565);
|
||||
synchronized (this) {
|
||||
mLowResCanvas.setBitmap(lowResIcon);
|
||||
mLowResCanvas.drawColor(lowResBackgroundColor);
|
||||
mLowResCanvas.drawBitmap(icon, new Rect(0, 0, icon.getWidth(), icon.getHeight()),
|
||||
new Rect(0, 0, lowResIcon.getWidth(), lowResIcon.getHeight()),
|
||||
|
||||
Reference in New Issue
Block a user