forked from upstream-mirrors/quik
Explicitly define mutability for PendingIntents
This commit is contained in:
@@ -73,7 +73,7 @@ public class DownloadManager {
|
||||
download.putExtra(MmsReceivedReceiver.EXTRA_TRIGGER_PUSH, byPush);
|
||||
download.putExtra(MmsReceivedReceiver.EXTRA_URI, uri);
|
||||
final PendingIntent pendingIntent = PendingIntent.getBroadcast(
|
||||
context, 0, download, PendingIntent.FLAG_CANCEL_CURRENT);
|
||||
context, 0, download, PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_IMMUTABLE);
|
||||
|
||||
final SmsManager smsManager = SmsManagerFactory.INSTANCE.createSmsManager(subscriptionId);
|
||||
Bundle configOverrides = new Bundle();
|
||||
|
||||
@@ -309,7 +309,7 @@ public class RetryScheduler implements Observer {
|
||||
Intent service = new Intent(TransactionService.ACTION_ONALARM,
|
||||
null, context, TransactionService.class);
|
||||
PendingIntent operation = PendingIntent.getService(
|
||||
context, 0, service, PendingIntent.FLAG_ONE_SHOT);
|
||||
context, 0, service, PendingIntent.FLAG_ONE_SHOT | PendingIntent.FLAG_IMMUTABLE);
|
||||
AlarmManager am = (AlarmManager) context.getSystemService(
|
||||
Context.ALARM_SERVICE);
|
||||
am.set(AlarmManager.RTC, retryAt, operation);
|
||||
|
||||
Reference in New Issue
Block a user