package com.android.launcher3; import static com.android.launcher3.util.MainThreadInitializedObject.forOverride; import android.content.pm.LauncherActivityInfo; import android.graphics.drawable.Drawable; import com.android.launcher3.util.MainThreadInitializedObject; import com.android.launcher3.util.ResourceBasedOverride; public class IconProvider implements ResourceBasedOverride { public static MainThreadInitializedObject INSTANCE = forOverride(IconProvider.class, R.string.icon_provider_class); public IconProvider() { } public String getSystemStateForPackage(String systemState, String packageName) { return systemState; } /** * @param flattenDrawable true if the caller does not care about the specification of the * original icon as long as the flattened version looks the same. */ public Drawable getIcon(LauncherActivityInfo info, int iconDpi, boolean flattenDrawable) { return info.getIcon(iconDpi); } }