Calendar trigger
This commit is contained in:
@@ -90,9 +90,7 @@ public class CalendarReceiver extends BroadcastReceiver implements AutomationLis
|
||||
{
|
||||
Miscellaneous.logEvent("i", "CalendarReceiver", "Clearing calendar caches.", 4);
|
||||
|
||||
calendarsCache = null;
|
||||
calendarEventsCache = null;
|
||||
calendarEventsReoccurringCache = null;
|
||||
clearCaches();
|
||||
|
||||
routineAtAlarm();
|
||||
}
|
||||
@@ -118,6 +116,13 @@ public class CalendarReceiver extends BroadcastReceiver implements AutomationLis
|
||||
startCalendarReceiver(automationServiceRef);
|
||||
}
|
||||
|
||||
static void clearCaches()
|
||||
{
|
||||
calendarsCache = null;
|
||||
calendarEventsCache = null;
|
||||
calendarEventsReoccurringCache = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stopListener(AutomationService automationService)
|
||||
{
|
||||
@@ -129,9 +134,7 @@ public class CalendarReceiver extends BroadcastReceiver implements AutomationLis
|
||||
calendarReceiverInstance = null;
|
||||
}
|
||||
|
||||
calendarsCache = null;
|
||||
calendarEventsCache = null;
|
||||
calendarEventsReoccurringCache = null;
|
||||
clearCaches();
|
||||
|
||||
calendarReceiverActive = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user