Merge "Fix bug where Files app keeps getting added to the workspace." into ub-launcher3-qt-future-dev

am: 23df556ec4

Change-Id: I408d6c3d537124b8c8bfa4670261435d004eb7d3
This commit is contained in:
Jon Miranda
2019-10-30 10:54:26 -07:00
committed by android-build-merger
2 changed files with 8 additions and 0 deletions

View File

@@ -76,6 +76,11 @@ public class AddWorkspaceItemsTask extends BaseModelUpdateTask {
if (shortcutExists(dataModel, item.getIntent(), item.user)) {
continue;
}
// b/139663018 Short-circuit this logic if the icon is a system app
if (PackageManagerHelper.isSystemApp(app.getContext(), item.getIntent())) {
continue;
}
}
if (item.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION) {