• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-c誰得cocoaqtpythonrubywindowsphpgameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwitterdombtronvb.nettestarduinodirectxpreviewerゲームエンジン

frameworks/base


Commit MetaInfo

Revision7e7ea0991020d15cdb69c5da933c282c92f884ef (tree)
Time2020-08-07 09:12:34
AuthorSteve Elliott <steell@goog...>
CommiterAnis Assi

Log Message

Mark implicit PendingIntents as immutable

Bug: 156020795
Test: manual, atest
Change-Id: I72206c7a52b067b77d6542d170a6483713dfeee7
(cherry picked from commit 84e08280d3882cfe4bad12ab426016c6d0efc7fb)
(cherry picked from commit a5d52884d01bc21848f3dcaf5425e0aed9516162)

Change Summary

Incremental Difference

--- a/packages/SystemUI/src/com/android/systemui/util/leak/LeakReporter.java
+++ b/packages/SystemUI/src/com/android/systemui/util/leak/LeakReporter.java
@@ -93,9 +93,13 @@ public class LeakReporter {
9393 .setContentText(String.format(
9494 "SystemUI has detected %d leaked objects. Tap to send", garbageCount))
9595 .setSmallIcon(com.android.internal.R.drawable.stat_sys_adb)
96- .setContentIntent(PendingIntent.getActivityAsUser(mContext, 0,
96+ .setContentIntent(PendingIntent.getActivityAsUser(
97+ mContext,
98+ 0,
9799 getIntent(hprofFile, dumpFile),
98- PendingIntent.FLAG_UPDATE_CURRENT, null, UserHandle.CURRENT));
100+ PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE,
101+ null,
102+ UserHandle.CURRENT));
99103 notiMan.notify(TAG, 0, builder.build());
100104 } catch (IOException e) {
101105 Log.e(TAG, "Couldn't dump heap for leak", e);