Merge "Add immutability flag to PendingIntents" into rvc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5a2b08a5f9
@@ -784,7 +784,7 @@ public class BugreportProgressService extends Service {
|
||||
intent.setClass(context, BugreportProgressService.class);
|
||||
intent.putExtra(EXTRA_ID, info.id);
|
||||
return PendingIntent.getService(context, info.id, intent,
|
||||
PendingIntent.FLAG_UPDATE_CURRENT);
|
||||
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1244,7 +1244,7 @@ public class BugreportProgressService extends Service {
|
||||
.setTicker(title)
|
||||
.setContentText(content)
|
||||
.setContentIntent(PendingIntent.getService(mContext, info.id, shareIntent,
|
||||
PendingIntent.FLAG_UPDATE_CURRENT))
|
||||
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE))
|
||||
.setDeleteIntent(newCancelIntent(mContext, info));
|
||||
|
||||
if (!TextUtils.isEmpty(info.getName())) {
|
||||
|
||||
Reference in New Issue
Block a user