From 82422503fdc8912968efef09dc1fc0fa2d9537cf Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Mon, 17 Sep 2012 18:06:20 -0700 Subject: Fixing some warnings Change-Id: I28ff3b62b831bd49e3592c1b86ba978208324c11 --- src/com/android/launcher2/Workspace.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java index 897e95a..cae0023 100644 --- a/src/com/android/launcher2/Workspace.java +++ b/src/com/android/launcher2/Workspace.java @@ -3697,13 +3697,12 @@ public class Workspace extends SmoothPagedView } // Clean up new-apps animation list - final LauncherModel model = mLauncher.getModel(); final Context context = getContext(); post(new Runnable() { @Override public void run() { String spKey = LauncherApplication.getSharedPreferencesKey(); - SharedPreferences sp = getContext().getSharedPreferences(spKey, + SharedPreferences sp = context.getSharedPreferences(spKey, Context.MODE_PRIVATE); Set newApps = sp.getStringSet(InstallShortcutReceiver.NEW_APPS_LIST_KEY, null); @@ -3722,10 +3721,11 @@ public class Workspace extends SmoothPagedView // It is possible that we've queued an item to be loaded, yet it has // not been added to the workspace, so remove those items as well. - ArrayList shortcuts = - model.getWorkspaceShortcutItemInfosWithIntent(intent); + ArrayList shortcuts; + shortcuts = LauncherModel.getWorkspaceShortcutItemInfosWithIntent( + intent); for (ItemInfo info : shortcuts) { - model.deleteItemFromDatabase(context, info); + LauncherModel.deleteItemFromDatabase(context, info); } } catch (URISyntaxException e) {} } -- cgit v1.1