Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2048779 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing wrong package check when adding shortcuts

Bug: 18571789,18535867
Change-Id: I2544fa634879846d812b00f8649520400f66d29e
parent 5c18b80e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);