Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8ca5a040 authored by Tetiana Meronyk's avatar Tetiana Meronyk
Browse files

Implement user start before alarms go off

Before this change alarms in multiuser environment were not consistent. If the user was stopped, their alarm did not go off. Since user stops happen without user's explicit interaction and their status is not available to regular users, if the alarm was set on background user, there was no certainty that the alarm would ring.

After the change a list of users with alarms scheduled is stored to start them in background shortly before their alarm. This ensures consistency in alarms going off even if the user gets stopped. Persistence of this list was added to save this list even after device reboots.

Bug: 314907186
Test: atest AlarmManagerServiceTest && atest UserWakeupStoreTest
Change-Id: I5a75813d76f505383909ac6a281902c54784a1ed
parent 42910f6b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment