New version prep, fix attempt in notification listener

This commit is contained in:
2024-01-21 23:46:08 +01:00
parent b7677bdcce
commit f7ff8a38e1
18 changed files with 223 additions and 27 deletions

View File

@@ -51,6 +51,16 @@ public class CalendarReceiver extends BroadcastReceiver implements AutomationLis
static AlarmManager alarmManager = null;
static boolean wakeupNeedsToBeScheduledOrRescheduled = false;
public static CalendarEvent getLastTriggeringEvent()
{
if(calendarEventsUsed.size() > 0)
{
return calendarEventsUsed.get(calendarEventsUsed.size() -1).event;
}
return null;
}
public static class RuleEventPair
{
Rule rule;