Add tests for play promise icons.

Bug: 139021165
Change-Id: I45469b7523d8aea12c34d460c7b69c571a415675
This commit is contained in:
Jon Miranda
2019-09-04 16:55:41 -07:00
parent 18c691404f
commit f5197fce3d
4 changed files with 122 additions and 6 deletions

View File

@@ -133,7 +133,8 @@ public class InstallShortcutReceiver extends BroadcastReceiver {
String pkg = getIntentPackage(info.launchIntent);
if (!TextUtils.isEmpty(pkg)
&& !launcherApps.isPackageEnabledForProfile(pkg, info.user)) {
&& !launcherApps.isPackageEnabledForProfile(pkg, info.user)
&& !info.isActivity) {
if (DBG) {
Log.d(TAG, "Ignoring shortcut for absent package: " + info.launchIntent);
}