mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
33 lines
727 B
Java
33 lines
727 B
Java
|
|
package com.android.launcher3;
|
||
|
|
|
||
|
|
import android.graphics.drawable.Drawable;
|
||
|
|
|
||
|
|
import com.android.launcher3.compat.LauncherActivityInfoCompat;
|
||
|
|
|
||
|
|
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(LauncherActivityInfoCompat info, int iconDpi) {
|
||
|
|
return info.getIcon(iconDpi);
|
||
|
|
}
|
||
|
|
}
|