mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
32 lines
704 B
Java
32 lines
704 B
Java
package com.android.launcher3;
|
|
|
|
import android.content.pm.LauncherActivityInfo;
|
|
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;
|
|
}
|
|
|
|
|
|
public Drawable getIcon(LauncherActivityInfo info, int iconDpi) {
|
|
return info.getIcon(iconDpi);
|
|
}
|
|
}
|