mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 18:28:20 +00:00
Merge "Fix bug where Files app keeps getting added to the workspace." into ub-launcher3-qt-future-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
23df556ec4
@@ -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) {
|
||||
|
||||
@@ -236,6 +236,9 @@ public class PackageManagerHelper {
|
||||
} else {
|
||||
packageName = cn.getPackageName();
|
||||
}
|
||||
if (packageName == null) {
|
||||
packageName = intent.getPackage();
|
||||
}
|
||||
if (packageName != null) {
|
||||
try {
|
||||
PackageInfo info = pm.getPackageInfo(packageName, 0);
|
||||
|
||||
Reference in New Issue
Block a user