1 package com.android.launcher3;
2 
3 import android.content.pm.LauncherActivityInfo;
4 import android.graphics.drawable.Drawable;
5 
6 import java.util.Locale;
7 
8 public class IconProvider {
9 
10     private static final boolean DBG = false;
11     private static final String TAG = "IconProvider";
12 
13     protected String mSystemState;
14 
IconProvider()15     public IconProvider() {
16         updateSystemStateString();
17     }
18 
updateSystemStateString()19     public void updateSystemStateString() {
20         mSystemState = Locale.getDefault().toString();
21     }
22 
getIconSystemState(String packageName)23     public String getIconSystemState(String packageName) {
24         return mSystemState;
25     }
26 
27 
getIcon(LauncherActivityInfo info, int iconDpi)28     public Drawable getIcon(LauncherActivityInfo info, int iconDpi) {
29         return info.getIcon(iconDpi);
30     }
31 }
32