Bypass instant app resolution when NON_BROWSER specified
This change bypasses instant app navigation when the caller provides the non-browser flag on an intent. Instant resolution is a stand-in for the browser and when an instant app fails to install or similar, the fallback to browser would fail with this flag present. Fixes: 269673899 Test: manual Test: atest EphemeralTest Change-Id: I01e3017367fe74d923a1bc72970a4bcde362fc27
This commit is contained in:
@@ -2310,6 +2310,9 @@ public class ComputerEngine implements Computer {
|
||||
if ((intent.getFlags() & Intent.FLAG_IGNORE_EPHEMERAL) != 0) {
|
||||
return false;
|
||||
}
|
||||
if ((intent.getFlags() & Intent.FLAG_ACTIVITY_REQUIRE_NON_BROWSER) != 0) {
|
||||
return false;
|
||||
}
|
||||
if (!skipPackageCheck && intent.getPackage() != null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user