Search in sources :

Example 1 with PlaceHolderIconDrawable

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;
}
Also used : FastBitmapDrawable(com.android.launcher3.FastBitmapDrawable)

Example 2 with PlaceHolderIconDrawable

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;
}
Also used : FastBitmapDrawable(com.android.launcher3.icons.FastBitmapDrawable) PlaceHolderIconDrawable(com.android.launcher3.icons.PlaceHolderIconDrawable)

Aggregations

FastBitmapDrawable (com.android.launcher3.FastBitmapDrawable)1 FastBitmapDrawable (com.android.launcher3.icons.FastBitmapDrawable)1 PlaceHolderIconDrawable (com.android.launcher3.icons.PlaceHolderIconDrawable)1