Decoupling launcher/workspace package cleanup from the application list (Bug 6602756)
- Fixes issues where shortcuts created by wallpaper/widget-only apps are uninstalled. Change-Id: I94c9d1d71fc34aa2fb7f0660534e616a82ac6f36
This commit is contained in:
@@ -3545,12 +3545,9 @@ public class Workspace extends SmoothPagedView
|
||||
}
|
||||
}
|
||||
|
||||
void removeItems(final ArrayList<ApplicationInfo> apps) {
|
||||
void removeItems(final ArrayList<String> packages) {
|
||||
final HashSet<String> packageNames = new HashSet<String>();
|
||||
final int appCount = apps.size();
|
||||
for (int i = 0; i < appCount; i++) {
|
||||
packageNames.add(apps.get(i).componentName.getPackageName());
|
||||
}
|
||||
packageNames.addAll(packages);
|
||||
|
||||
ArrayList<CellLayout> cellLayouts = getWorkspaceAndHotseatCellLayouts();
|
||||
for (final CellLayout layoutParent: cellLayouts) {
|
||||
|
||||
Reference in New Issue
Block a user