mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 13:47:05 +02:00
Immutable pending intents
This commit is contained in:
@@ -454,7 +454,8 @@ public class EntityMessage implements Serializable {
|
||||
static void snooze(Context context, long id, Long wakeup) {
|
||||
Intent snoozed = new Intent(context, ServiceUI.class);
|
||||
snoozed.setAction("wakeup:" + id);
|
||||
PendingIntent pi = PendingIntent.getService(context, ServiceUI.PI_WAKEUP, snoozed, PendingIntent.FLAG_UPDATE_CURRENT);
|
||||
PendingIntent pi = PendingIntentCompat.getService(
|
||||
context, ServiceUI.PI_WAKEUP, snoozed, PendingIntent.FLAG_UPDATE_CURRENT);
|
||||
|
||||
AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
|
||||
if (wakeup == null || wakeup == Long.MAX_VALUE) {
|
||||
|
||||
Reference in New Issue
Block a user