change package name to uiuios
This commit is contained in:
28
src/com/android/uiuios/IconProvider.java
Normal file
28
src/com/android/uiuios/IconProvider.java
Normal file
@@ -0,0 +1,28 @@
|
||||
package com.android.uiuios;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.pm.LauncherActivityInfo;
|
||||
import android.graphics.drawable.Drawable;
|
||||
|
||||
import com.android.uiuios.util.ResourceBasedOverride;
|
||||
|
||||
public class IconProvider implements ResourceBasedOverride {
|
||||
|
||||
public static IconProvider newInstance(Context context) {
|
||||
return Overrides.getObject(IconProvider.class, context, 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user