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

Commit a207130f authored by Bernardo Rufino's avatar Bernardo Rufino Committed by Android (Google) Code Review
Browse files

Merge "Let virtualdevice.launchPendingIntent() to start BAL using its BAL permission" into tm-dev

parents c416376c d5c42a30
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -241,6 +241,9 @@ final class VirtualDeviceImpl extends IVirtualDevice.Stub

    private void sendPendingIntent(int displayId, PendingIntent pendingIntent)
            throws PendingIntent.CanceledException {
        final ActivityOptions options = ActivityOptions.makeBasic().setLaunchDisplayId(displayId);
        options.setPendingIntentBackgroundActivityLaunchAllowed(true);
        options.setPendingIntentBackgroundActivityLaunchAllowedByPermission(true);
        pendingIntent.send(
                mContext,
                /* code= */ 0,
@@ -248,9 +251,7 @@ final class VirtualDeviceImpl extends IVirtualDevice.Stub
                /* onFinished= */ null,
                /* handler= */ null,
                /* requiredPermission= */ null,
                ActivityOptions.makeBasic()
                        .setLaunchDisplayId(displayId)
                        .toBundle());
                options.toBundle());
    }

    @Override // Binder call