From cc8befac3550c81d04ea206c170adae36c9a6c93 Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Tue, 11 Jun 2013 14:45:48 -0400 Subject: 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 --- src/com/android/launcher3/Folder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/android/launcher3/Folder.java') diff --git a/src/com/android/launcher3/Folder.java b/src/com/android/launcher3/Folder.java index 07c94007f..7b15e9edf 100644 --- a/src/com/android/launcher3/Folder.java +++ b/src/com/android/launcher3/Folder.java @@ -135,7 +135,7 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList super(context, attrs); setAlwaysDrawnWithCacheEnabled(false); mInflater = LayoutInflater.from(context); - mIconCache = ((LauncherApplication)context.getApplicationContext()).getIconCache(); + mIconCache = (LauncherAppState.getInstance()).getIconCache(); Resources res = getResources(); mMaxCountX = mMaxVisibleX = res.getInteger(R.integer.folder_max_count_x); -- cgit v1.2.3