diff options
author | Joe Onorato <joeo@android.com> | 2009-11-19 19:05:32 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2009-11-19 19:05:32 -0800 |
commit | 4f11b9a062b52083c0ac279fa37b4fc635139a41 (patch) | |
tree | 52e7b03558131c2f4c3e32ea590fb10c44aa3b40 | |
parent | 306e91c2b66f7d0b4ee75dd809c0975e144740d8 (diff) | |
parent | efffe8baf0531166202df862d5ce5191529627ee (diff) | |
download | android_packages_apps_Trebuchet-4f11b9a062b52083c0ac279fa37b4fc635139a41.tar.gz android_packages_apps_Trebuchet-4f11b9a062b52083c0ac279fa37b4fc635139a41.tar.bz2 android_packages_apps_Trebuchet-4f11b9a062b52083c0ac279fa37b4fc635139a41.zip |
am efffe8ba: am 504b5a04: am 418928e9: Fix bug 2223769 - Uninstalling app causes NPE.
Merge commit 'efffe8baf0531166202df862d5ce5191529627ee'
* commit 'efffe8baf0531166202df862d5ce5191529627ee':
Fix bug 2223769 - Uninstalling app causes NPE.
-rw-r--r-- | src/com/android/launcher2/LauncherModel.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java index 6b4d3f4a4..d9017dab6 100644 --- a/src/com/android/launcher2/LauncherModel.java +++ b/src/com/android/launcher2/LauncherModel.java @@ -278,8 +278,6 @@ public class LauncherModel extends BroadcastReceiver { ArrayList<ApplicationInfo> added = null; ArrayList<ApplicationInfo> removed = null; ArrayList<ApplicationInfo> modified = null; - boolean update = false; - boolean remove = false; synchronized (mLock) { if (mBeforeFirstLoad) { @@ -298,11 +296,9 @@ public class LauncherModel extends BroadcastReceiver { if (Intent.ACTION_PACKAGE_CHANGED.equals(action)) { mAllAppsList.updatePackage(context, packageName); - update = true; } else if (Intent.ACTION_PACKAGE_REMOVED.equals(action)) { if (!replacing) { mAllAppsList.removePackage(packageName); - remove = true; } // else, we are replacing the package, so a PACKAGE_ADDED will be sent // later, we will update the package at this time @@ -311,7 +307,6 @@ public class LauncherModel extends BroadcastReceiver { mAllAppsList.addPackage(context, packageName); } else { mAllAppsList.updatePackage(context, packageName); - update = true; } } @@ -345,7 +340,7 @@ public class LauncherModel extends BroadcastReceiver { } }); } - if (update || modified != null) { + if (modified != null) { final ArrayList<ApplicationInfo> modifiedFinal = modified; mHandler.post(new Runnable() { public void run() { @@ -353,7 +348,7 @@ public class LauncherModel extends BroadcastReceiver { } }); } - if (remove || removed != null) { + if (removed != null) { final ArrayList<ApplicationInfo> removedFinal = removed; mHandler.post(new Runnable() { public void run() { |