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

Commit 43cf41b3 authored by Todd Kennedy's avatar Todd Kennedy Committed by android-build-merger
Browse files

Merge "Always add the instant app installer" into oc-dev am: e943a3cb

am: 9abb2cb5

Change-Id: I1be04d7ec849205df78d2a50e33652f59d61ee5a
parents b48816c5 9abb2cb5
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -6492,18 +6492,22 @@ public class PackageManagerService extends IPackageManager.Stub
                }
            } else {
                final PackageParser.Package pkg = mPackages.get(pkgName);
                result = null;
                if (pkg != null) {
                    return applyPostResolutionFilter(filterIfNotSystemUser(
                    result = filterIfNotSystemUser(
                            mActivities.queryIntentForPackage(
                                    intent, resolvedType, flags, pkg.activities, userId),
                            userId), instantAppPkgName);
                } else {
                            userId);
                }
                if (result == null || result.size() == 0) {
                    // the caller wants to resolve for a particular package; however, there
                    // were no installed results, so, try to find an ephemeral result
                    addEphemeral = !ephemeralDisabled
                            && isInstantAppAllowed(
                                    intent, null /*result*/, userId, true /*skipPackageCheck*/);
                    result = new ArrayList<ResolveInfo>();
                    if (result == null) {
                        result = new ArrayList<>();
                    }
                }
            }
        }