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

Commit 06f66ba8 authored by Ashwini Oruganti's avatar Ashwini Oruganti
Browse files

PreBootBroadcaster.java: Make the PendingIntent immutable

PendingIntents now need an explicit mutability flags. See
go/immutable-pendingintents for more details.

Fixes: 169794258
Test: Green builds
Change-Id: If9268554ecc02acaf08fa62a9a01b5fc6ce374f7
parent 89eed4d2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -144,7 +144,8 @@ public abstract class PreBootBroadcaster extends IIntentReceiver.Stub {

                    final PendingIntent contentIntent;
                    if (context.getPackageManager().resolveActivity(intent, 0) != null) {
                        contentIntent = PendingIntent.getActivity(context, 0, intent, 0);
                        contentIntent = PendingIntent.getActivity(context, 0, intent,
                                PendingIntent.FLAG_IMMUTABLE);
                    } else {
                        contentIntent = null;
                    }