Open emosenkis opened 1 year ago
Adding the button behaviour shouldn't be too complicated and it's pretty important to avoid making the stopping of the ringing hinder usability. Also I consider the fact that the vibration doesn't stop when closing the app a bug.
I think the timed stopping of the ringing should probably be handled in the app rather than the controller, as I think it's a UI thing. You can use LVGL tasks for this. Please refer to AlarmController.cpp and Alarm.cpp for both of these issues.
@Riksu9000 I think I've addressed all your feedback - the button now behaves the way you asked, the app controls the ringing, leaving the app by button or by swiping should ensure that the ringing is stopped.
@Riksu9000 rebased and fixed
Ping @Riksu9000
Long pressing (the button) hasn't been addressed and there are some issues still, but I'm also reconsidering this feature in this issue https://github.com/InfiniTimeOrg/InfiniTime/issues/391#issuecomment-1383231455
Fixes #1374 Fresh implementation of similar features of #557