Added hiding messages

This commit is contained in:
M66B
2019-10-12 11:09:54 +02:00
parent 04adcaf221
commit 5d2a1c4266
11 changed files with 101 additions and 21 deletions

View File

@@ -238,7 +238,7 @@ public class EntityMessage implements Serializable {
PendingIntent pi = PendingIntent.getService(context, ServiceUI.PI_WAKEUP, snoozed, PendingIntent.FLAG_UPDATE_CURRENT);
AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
if (wakeup == null) {
if (wakeup == null || wakeup == Long.MAX_VALUE) {
Log.i("Cancel snooze id=" + id);
am.cancel(pi);
} else {