File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/SystemUI/src/com/android/systemui/util/leak Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -104,9 +104,13 @@ public void dumpLeak(int garbageCount) {
104
104
.setContentText (String .format (
105
105
"SystemUI has detected %d leaked objects. Tap to send" , garbageCount ))
106
106
.setSmallIcon (com .android .internal .R .drawable .stat_sys_adb )
107
- .setContentIntent (PendingIntent .getActivityAsUser (mContext , 0 ,
107
+ .setContentIntent (PendingIntent .getActivityAsUser (
108
+ mContext ,
109
+ 0 ,
108
110
getIntent (hprofFile , dumpFile ),
109
- PendingIntent .FLAG_UPDATE_CURRENT , null , UserHandle .CURRENT ));
111
+ PendingIntent .FLAG_UPDATE_CURRENT | PendingIntent .FLAG_IMMUTABLE ,
112
+ null ,
113
+ UserHandle .CURRENT ));
110
114
notiMan .notify (TAG , 0 , builder .build ());
111
115
} catch (IOException e ) {
112
116
Log .e (TAG , "Couldn't dump heap for leak" , e );
You can’t perform that action at this time.
0 commit comments