Loading iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java +5 −0 Original line number Diff line number Diff line Loading @@ -594,6 +594,11 @@ public abstract class BaseIconCache { Bitmap monoBitmap = Bitmap.createBitmap( icon.getWidth(), icon.getHeight(), Config.ALPHA_8); monoBitmap.copyPixelsFromBuffer(ByteBuffer.wrap(data)); Bitmap hwMonoBitmap = monoBitmap.copy(Config.HARDWARE, false /*isMutable*/); if (hwMonoBitmap != null) { monoBitmap.recycle(); monoBitmap = hwMonoBitmap; } try (BaseIconFactory factory = getIconFactory()) { entry.bitmap.setMonoIcon(monoBitmap, factory); } Loading Loading
iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java +5 −0 Original line number Diff line number Diff line Loading @@ -594,6 +594,11 @@ public abstract class BaseIconCache { Bitmap monoBitmap = Bitmap.createBitmap( icon.getWidth(), icon.getHeight(), Config.ALPHA_8); monoBitmap.copyPixelsFromBuffer(ByteBuffer.wrap(data)); Bitmap hwMonoBitmap = monoBitmap.copy(Config.HARDWARE, false /*isMutable*/); if (hwMonoBitmap != null) { monoBitmap.recycle(); monoBitmap = hwMonoBitmap; } try (BaseIconFactory factory = getIconFactory()) { entry.bitmap.setMonoIcon(monoBitmap, factory); } Loading