blob: a5d399013ea817fdee866a5bc1c71f0c54611054 [file] [log] [blame]
Annie Chin17f85952016-03-24 17:12:30 -07001package com.android.launcher3;
2
Sunny Goyal3e9be432017-01-05 15:22:41 -08003import android.content.pm.LauncherActivityInfo;
Annie Chin17f85952016-03-24 17:12:30 -07004import android.graphics.drawable.Drawable;
Annie Chin17f85952016-03-24 17:12:30 -07005
Annie Chin17f85952016-03-24 17:12:30 -07006import java.util.Locale;
7
8public class IconProvider {
9
10 private static final boolean DBG = false;
11 private static final String TAG = "IconProvider";
12
13 protected String mSystemState;
14
15 public IconProvider() {
16 updateSystemStateString();
17 }
18
Annie Chin17f85952016-03-24 17:12:30 -070019 public void updateSystemStateString() {
20 mSystemState = Locale.getDefault().toString();
21 }
22
23 public String getIconSystemState(String packageName) {
24 return mSystemState;
25 }
26
27
Sunny Goyal3e9be432017-01-05 15:22:41 -080028 public Drawable getIcon(LauncherActivityInfo info, int iconDpi) {
Annie Chin17f85952016-03-24 17:12:30 -070029 return info.getIcon(iconDpi);
30 }
31}