forked from upstream-mirrors/quik
Explicitly define mutability for PendingIntents
This commit is contained in:
@@ -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