mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Using a placeholder icon shape instead of low-res/blurry icon
Bug: 111142970 Change-Id: I867224464ae9c026f4dcb5256ef14fc39c8e751d
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user