Mark implicit PendingIntents as immutable am: 504e7d848d

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

Change-Id: Ia61f61355f4c6db4474d25ac50fdd535df67b764
This commit is contained in:
Steve Elliott
2020-08-05 20:25:52 +00:00
committed by Automerger Merge Worker

View File

@@ -93,9 +93,13 @@ public class LeakReporter {
.setContentText(String.format( .setContentText(String.format(
"SystemUI has detected %d leaked objects. Tap to send", garbageCount)) "SystemUI has detected %d leaked objects. Tap to send", garbageCount))
.setSmallIcon(com.android.internal.R.drawable.stat_sys_adb) .setSmallIcon(com.android.internal.R.drawable.stat_sys_adb)
.setContentIntent(PendingIntent.getActivityAsUser(mContext, 0, .setContentIntent(PendingIntent.getActivityAsUser(
mContext,
0,
getIntent(hprofFile, dumpFile), 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()); notiMan.notify(TAG, 0, builder.build());
} catch (IOException e) { } catch (IOException e) {
Log.e(TAG, "Couldn't dump heap for leak", e); Log.e(TAG, "Couldn't dump heap for leak", e);