summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Workspace.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2013-07-24 15:33:46 -0700
committerWinson Chung <winsonc@google.com>2013-07-26 12:58:45 -0700
commit997a92348a6d6e061737399321393449c16cd4d8 (patch)
treeee2cb2a37a4009cbcfcd0d45e6b9f8caad653ac1 /src/com/android/launcher3/Workspace.java
parentbffe745b1e195deedc1dcc60f37950b3b0b4c652 (diff)
downloadandroid_packages_apps_Trebuchet-997a92348a6d6e061737399321393449c16cd4d8.tar.gz
android_packages_apps_Trebuchet-997a92348a6d6e061737399321393449c16cd4d8.tar.bz2
android_packages_apps_Trebuchet-997a92348a6d6e061737399321393449c16cd4d8.zip
Removing old new-app animation code, and refactoring InstallShortcutReceiver to use new add/bind logic.
Change-Id: Ide27dbcf1d1b1631fcd33a6c54a51b31e125c2f4
Diffstat (limited to 'src/com/android/launcher3/Workspace.java')
-rw-r--r--src/com/android/launcher3/Workspace.java28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java
index edf372144..90b54c679 100644
--- a/src/com/android/launcher3/Workspace.java
+++ b/src/com/android/launcher3/Workspace.java
@@ -3945,34 +3945,6 @@ public class Workspace extends SmoothPagedView
// Strip all the empty screens
stripEmptyScreens();
-
- // Clean up new-apps animation list
- final Context context = getContext();
- post(new Runnable() {
- @Override
- public void run() {
- String spKey = LauncherAppState.getSharedPreferencesKey();
- SharedPreferences sp = context.getSharedPreferences(spKey,
- Context.MODE_PRIVATE);
- Set<String> newApps = sp.getStringSet(InstallShortcutReceiver.NEW_APPS_LIST_KEY,
- null);
-
- // Remove all queued items that match the same package
- if (newApps != null) {
- synchronized (newApps) {
- Iterator<String> iter = newApps.iterator();
- while (iter.hasNext()) {
- try {
- Intent intent = Intent.parseUri(iter.next(), 0);
- if (componentNames.contains(intent.getComponent())) {
- iter.remove();
- }
- } catch (URISyntaxException e) {}
- }
- }
- }
- }
- });
}
void updateShortcuts(ArrayList<ApplicationInfo> apps) {