mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Move LauncherApplication's state and code to LauncherAppState.
This removes Launcher's static data and other state out of the Application object. Now LauncherApplication (extends Application) exists only to instantiate LauncherAppState. Change-Id: I4e323bd78b77536b92054105536a55c0c2c19ba8
This commit is contained in:
@@ -45,13 +45,13 @@ public class IconCache {
|
||||
}
|
||||
|
||||
private final Bitmap mDefaultIcon;
|
||||
private final LauncherApplication mContext;
|
||||
private final Context mContext;
|
||||
private final PackageManager mPackageManager;
|
||||
private final HashMap<ComponentName, CacheEntry> mCache =
|
||||
new HashMap<ComponentName, CacheEntry>(INITIAL_ICON_CACHE_CAPACITY);
|
||||
private int mIconDpi;
|
||||
|
||||
public IconCache(LauncherApplication context) {
|
||||
public IconCache(Context context) {
|
||||
ActivityManager activityManager =
|
||||
(ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user