<voicealarm> Code refactor
Merge functions
Register alarm only on activity pause
<voicealarm> bug fixes