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