durka/HallMonitor

Allow alarm clock control through window

Wallace0 opened this issue · 2 comments

Allow alarm clock control through window

Basic capability added into alarm-answer branch. New config parameter added to enable the alarm controls. If set, then when the case is closed and the alarm goes off you get presented with snooze and dismiss buttons in the windowed area.

Needs a LOT of prettying up though.

Should also add check for root permissions, as not much point showing the controls if you can't use them.

There was an issue with the alarm screen still displaying if the alarm was dismissed from elsewhere. This has been fixed by subscribing to the ALARM_DONE_ACTION intent which is broadcast after the alarm is turned off.