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

Commit 06f34466 authored by Jesse Evans's avatar Jesse Evans Committed by android-build-merger
Browse files

Merge "browserIntent needs proper flags for PendingIntent" into oc-dev

am: a8851447

Change-Id: Ie5a3c4c96c7a8a41b630ff5c84f8d03eedaa95c6
parents 38659987 a8851447
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -561,12 +561,14 @@ public class PhoneStatusBarPolicy implements Callback, Callbacks,
        Intent browserIntent = getTaskIntent(taskId, userId);
        Notification.Builder builder = new Notification.Builder(mContext, NotificationChannels.GENERAL);
        if (browserIntent != null) {
            // Make sure that this doesn't resolve back to an instant app
            browserIntent.setComponent(null)
                    .setPackage(null)
                    .addFlags(Intent.FLAG_IGNORE_EPHEMERAL)
                    .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

            PendingIntent pendingIntent = PendingIntent.getActivity(mContext,
                    0 /* requestCode */, browserIntent, 0 /* flags */);
            browserIntent.setComponent(null);
            browserIntent.addFlags(Intent.FLAG_IGNORE_EPHEMERAL);
            browserIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

            ComponentName aiaComponent = null;
            try {
                aiaComponent = AppGlobals.getPackageManager().getInstantAppInstallerComponent();