summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2014-12-03 08:55:16 (GMT)
committerDanesh M <daneshm90@gmail.com>2015-09-28 04:09:24 (GMT)
commit4aea5e692f883e4451e5ee36a070ac85dffc24d7 (patch)
tree5d52cfaf24e7cf40d5c2ceb6278148b5e3b7fe93
parent45f5f45d36514d36063704a38674cf29a00c9bd7 (diff)
downloadandroid_packages_apps_Trebuchet-4aea5e692f883e4451e5ee36a070ac85dffc24d7.zip
android_packages_apps_Trebuchet-4aea5e692f883e4451e5ee36a070ac85dffc24d7.tar.gz
android_packages_apps_Trebuchet-4aea5e692f883e4451e5ee36a070ac85dffc24d7.tar.bz2
Fixing wrong package check when adding shortcuts
Bug: 18571789,18535867 Change-Id: I2544fa634879846d812b00f8649520400f66d29e
-rw-r--r--src/com/android/launcher3/InstallShortcutReceiver.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/InstallShortcutReceiver.java b/src/com/android/launcher3/InstallShortcutReceiver.java
index 395c341..1ab3085 100644
--- a/src/com/android/launcher3/InstallShortcutReceiver.java
+++ b/src/com/android/launcher3/InstallShortcutReceiver.java
@@ -193,7 +193,7 @@ public class InstallShortcutReceiver extends BroadcastReceiver {
// If the intent specifies a package, make sure the package exists
String packageName = pendingInfo.getTargetPackage();
- if (TextUtils.isEmpty(packageName)) {
+ if (!TextUtils.isEmpty(packageName)) {
UserHandleCompat myUserHandle = UserHandleCompat.myUserHandle();
if (!LauncherModel.isValidPackage(context, packageName, myUserHandle)) {
if (DBG) Log.d(TAG, "Ignoring shortcut for absent package:" + intent);