Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 499bbfa2 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing black lowres icons

Bug: 27598858
Change-Id: Ib7c9b1e3abe54b94741e154bc8327d06f83e439c
parent d856074d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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()),