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

Commit 79744b4c authored by Patrick Baumann's avatar Patrick Baumann
Browse files

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
parent 1fb6cab2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;
        }