ultimate_alarm_clock icon indicating copy to clipboard operation
ultimate_alarm_clock copied to clipboard

Fix: Alarm Not Deleting After Enabling "deleteAfterGoesOff"

Open keyurgit45 opened this issue 10 months ago • 0 comments

Description

The code for deleteAfterGoesOff is written in AlarmRingController's onInit() function. When the code is triggering, currentlyRingingAlarm holds the FakeAlarmModel value instead of the actual ringing alarm value. That's why the delete operation is not being performed.

Proposed Changes

I have added the code to delete the alarm in the onTap() function of the Dismiss button. So when the user dismisses the alarm, the alarm will be deleted.

Fixes #550

Checklist

  • [ ] Tests have been added or updated to cover the changes
  • [ ] Documentation has been updated to reflect the changes
  • [x] Code follows the established coding style guidelines
  • [ ] All tests are passing

keyurgit45 avatar Apr 13 '24 06:04 keyurgit45