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

Commit 39d93256 authored by Kweku Adams's avatar Kweku Adams
Browse files

Add FLAG_IMMUTABLE to heap dump notification PendingIntent.

Bug: 171987666
Test: Android builds
Change-Id: I0be6f837e7948db8d7a50c5ef6497aeb1854acde
parent 4cfdb5cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -180,7 +180,7 @@ public class HeapDumpReceiver extends BroadcastReceiver {
                .setContentText(context.getText(
                        com.android.internal.R.string.dump_heap_notification_detail))
                .setContentIntent(PendingIntent.getActivity(context, 2, shareIntent,
                        PendingIntent.FLAG_UPDATE_CURRENT));
                        PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE));

        Log.v(TAG, "Creating share heap dump notification");
        NotificationManager.from(context).notify(NOTIFICATION_ID, builder.build());