Fixes installed launch intent rewrite

Logic that detected how to handle already installed apps was resulting
in the instant app launching with the ephemral installer intent
targeted directly at the already resolved component.

This change reverts that logic to the original logic.
Offending change: ag/3540305

Change-Id: I4dec9bfd1282203229d03695e3a1b6ed5913696a
Fixes: 73018868
Test: manual - installed instant apps now launch as expected
Test: manual - generic intent test app still works as expected
This commit is contained in:
Patrick Baumann
2018-02-07 15:26:52 -08:00
parent 3367c05bf1
commit a89a172a71

View File

@@ -790,7 +790,7 @@ class ActivityStarter {
// Instead, launch the ephemeral installer. Once the installer is finished, it
// starts either the intent we resolved here [on install error] or the ephemeral
// app [on install success].
if (rInfo != null && rInfo.isInstantAppAvailable) {
if (rInfo != null && rInfo.auxiliaryInfo != null) {
intent = createLaunchIntent(rInfo.auxiliaryInfo, ephemeralIntent,
callingPackage, verificationBundle, resolvedType, userId);
resolvedType = null;