Using a placeholder icon shape instead of low-res/blurry icon

Bug: 111142970
Change-Id: I867224464ae9c026f4dcb5256ef14fc39c8e751d
This commit is contained in:
Sunny Goyal
2018-08-20 15:01:03 -07:00
parent 018e3c4447
commit 2b787e5bd6
18 changed files with 179 additions and 134 deletions

View File

@@ -16,6 +16,8 @@
package com.android.launcher3;
import static com.android.launcher3.graphics.BitmapInfo.LOW_RES_ICON;
import android.graphics.Bitmap;
/**
@@ -33,11 +35,6 @@ public abstract class ItemInfoWithIcon extends ItemInfo {
*/
public int iconColor;
/**
* Indicates whether we're using a low res icon
*/
public boolean usingLowResIcon;
/**
* Indicates that the icon is disabled due to safe mode restrictions.
*/
@@ -107,7 +104,6 @@ public abstract class ItemInfoWithIcon extends ItemInfo {
super(info);
iconBitmap = info.iconBitmap;
iconColor = info.iconColor;
usingLowResIcon = info.usingLowResIcon;
runtimeStatusFlags = info.runtimeStatusFlags;
}
@@ -115,4 +111,11 @@ public abstract class ItemInfoWithIcon extends ItemInfo {
public boolean isDisabled() {
return (runtimeStatusFlags & FLAG_DISABLED_MASK) != 0;
}
/**
* Indicates whether we're using a low res icon
*/
public boolean usingLowResIcon() {
return iconBitmap == LOW_RES_ICON;
}
}