use of com.android.launcher3.icons.PlaceHolderIconDrawable in project Neo-Launcher by NeoApplications.
the class DrawableFactory method newIcon.
public FastBitmapDrawable newIcon(Context context, ItemInfoWithIcon info) {
FastBitmapDrawable drawable = info.usingLowResIcon() ? new PlaceHolderIconDrawable(info, getShapePath(), context) : new FastBitmapDrawable(info);
drawable.setIsDisabled(info.isDisabled());
return drawable;
}
use of com.android.launcher3.icons.PlaceHolderIconDrawable in project android_packages_apps_404Launcher by P-404.
the class DrawableFactory method newIcon.
/**
* Returns a FastBitmapDrawable with the icon.
*/
public FastBitmapDrawable newIcon(Context context, ItemInfoWithIcon info) {
FastBitmapDrawable drawable = info.usingLowResIcon() ? new PlaceHolderIconDrawable(info.bitmap, context) : new FastBitmapDrawable(info.bitmap);
drawable.setIsDisabled(info.isDisabled());
return drawable;
}
Aggregations