2016-03-24 17:12:30 -07:00
|
|
|
package com.android.launcher3;
|
|
|
|
|
|
2017-01-05 15:22:41 -08:00
|
|
|
import android.content.pm.LauncherActivityInfo;
|
2016-03-24 17:12:30 -07:00
|
|
|
import android.graphics.drawable.Drawable;
|
|
|
|
|
|
|
|
|
|
import java.util.Locale;
|
|
|
|
|
|
|
|
|
|
public class IconProvider {
|
|
|
|
|
|
|
|
|
|
private static final boolean DBG = false;
|
|
|
|
|
private static final String TAG = "IconProvider";
|
|
|
|
|
|
|
|
|
|
protected String mSystemState;
|
|
|
|
|
|
|
|
|
|
public IconProvider() {
|
|
|
|
|
updateSystemStateString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void updateSystemStateString() {
|
|
|
|
|
mSystemState = Locale.getDefault().toString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getIconSystemState(String packageName) {
|
|
|
|
|
return mSystemState;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2017-01-05 15:22:41 -08:00
|
|
|
public Drawable getIcon(LauncherActivityInfo info, int iconDpi) {
|
2016-03-24 17:12:30 -07:00
|
|
|
return info.getIcon(iconDpi);
|
|
|
|
|
}
|
|
|
|
|
}
|