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

Commit 46387fb1 authored by Steve Elliott's avatar Steve Elliott Committed by Automerger Merge Worker
Browse files

Mark implicit PendingIntents as immutable am: 504e7d84

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12296465

Change-Id: Ia61f61355f4c6db4474d25ac50fdd535df67b764
parents ef301aba 504e7d84
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -93,9 +93,13 @@ public class LeakReporter {
                    .setContentText(String.format(
                            "SystemUI has detected %d leaked objects. Tap to send", garbageCount))
                    .setSmallIcon(com.android.internal.R.drawable.stat_sys_adb)
                    .setContentIntent(PendingIntent.getActivityAsUser(mContext, 0,
                    .setContentIntent(PendingIntent.getActivityAsUser(
                            mContext,
                            0,
                            getIntent(hprofFile, dumpFile),
                            PendingIntent.FLAG_UPDATE_CURRENT, null, UserHandle.CURRENT));
                            PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE,
                            null,
                            UserHandle.CURRENT));
            notiMan.notify(TAG, 0, builder.build());
        } catch (IOException e) {
            Log.e(TAG, "Couldn't dump heap for leak", e);