mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 15:17:03 +02:00
Added notification snooze action
This commit is contained in:
@@ -228,8 +228,8 @@ public class EntityMessage implements Serializable {
|
||||
|
||||
static void snooze(Context context, long id, Long wakeup) {
|
||||
Intent snoozed = new Intent(context, ServiceUI.class);
|
||||
snoozed.setAction("snooze:" + id);
|
||||
PendingIntent pi = PendingIntent.getService(context, ServiceUI.PI_SNOOZED, snoozed, PendingIntent.FLAG_UPDATE_CURRENT);
|
||||
snoozed.setAction("wakeup:" + id);
|
||||
PendingIntent pi = PendingIntent.getService(context, ServiceUI.PI_WAKEUP, snoozed, PendingIntent.FLAG_UPDATE_CURRENT);
|
||||
|
||||
AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
|
||||
if (wakeup == null) {
|
||||
|
||||
Reference in New Issue
Block a user