~aleteoryx/muditaos

1751bb4058226b11a8b14d54023e561380ab88dd — Bartosz Szostak 2 years ago d730848
[MOS-606] Fix inactive alarms after timezone change and reboot

The problem was a race condition.
Fixed by adding additional alarm's event cache update
after assigning the callback.
2 files changed, 2 insertions(+), 0 deletions(-)

M module-services/service-time/AlarmMessageHandler.cpp
M pure_changelog.md
M module-services/service-time/AlarmMessageHandler.cpp => module-services/service-time/AlarmMessageHandler.cpp +1 -0
@@ 158,6 158,7 @@ namespace alarms
        AlarmOperationsCommon::OnActiveAlarmCountChange callback) -> void
    {
        alarmOperations->addActiveAlarmCountChangeCallback(callback);
        alarmOperations->updateEventsCache(TimePointNow());
    }

    auto AlarmMessageHandler::handleGetSnoozedAlarms(GetSnoozedAlarmsRequestMessage *request)

M pure_changelog.md => pure_changelog.md +1 -0
@@ 259,6 259,7 @@
* Fixed problem with Music Player application crashing when trying to play files with unknown formats.
* Fixed problem with resuming music playback after connecting a headset.
* Fixed problem of battery discharging of phone without SIM card.
* Fixed inactive alarms after timezone change and reboot.

## [1.1.6 2022-01-20]