mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
update promise icon status
also fix a crash in LauncherModel.DEBUG_LOADERS Bug: 10778992 Change-Id: Iafc28c1e0c2f2a1283783a7ce27e181634b62993
This commit is contained in:
@@ -387,20 +387,6 @@ public class IconCache {
|
||||
}
|
||||
}
|
||||
|
||||
if (icon != null) {
|
||||
// TODO: handle alpha mask in the view layer
|
||||
Bitmap b = Bitmap.createBitmap(Math.max(icon.getWidth(), 1),
|
||||
Math.max(icon.getHeight(), 1),
|
||||
Bitmap.Config.ARGB_8888);
|
||||
Canvas c = new Canvas(b);
|
||||
Paint paint = new Paint();
|
||||
paint.setAlpha(127);
|
||||
c.drawBitmap(icon, 0, 0, paint);
|
||||
c.setBitmap(null);
|
||||
icon.recycle();
|
||||
icon = b;
|
||||
}
|
||||
|
||||
return icon;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user