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