Implement ability to uninstall shortcuts from workspace

Change-Id: I14ca94ea719825c4de19ab85d67537155098d50c
This commit is contained in:
Michael Jurka
2013-07-19 17:15:39 -04:00
parent 766f5f7a53
commit 1e2f465f46
10 changed files with 239 additions and 67 deletions
-15
View File
@@ -118,21 +118,6 @@ class ItemInfo {
LauncherModel.checkItemInfo(this);
}
/** Returns the package name that the intent will resolve to, or an empty string if
* none exists. */
static String getPackageName(Intent intent) {
if (intent != null) {
String packageName = intent.getPackage();
if (packageName == null && intent.getComponent() != null) {
packageName = intent.getComponent().getPackageName();
}
if (packageName != null) {
return packageName;
}
}
return "";
}
/**
* Write the fields of this item to the DB
*