Ensuring disabled packages remove all components on the workspace. (Bug 11172454)

This commit is contained in:
Winson Chung
2013-10-16 14:57:07 -07:00
parent 51b9f6a570
commit df95eb12a4
4 changed files with 64 additions and 55 deletions

View File

@@ -104,6 +104,9 @@ public class InstallShortcutReceiver extends BroadcastReceiver {
public static void removeFromInstallQueue(SharedPreferences sharedPrefs,
ArrayList<String> packageNames) {
if (packageNames.isEmpty()) {
return;
}
synchronized(sLock) {
Set<String> strings = sharedPrefs.getStringSet(APPS_PENDING_INSTALL, null);
if (strings != null) {