Skip to content

Commit

Permalink
Merge pull request #193 from vicolo-dev/develop
Browse files Browse the repository at this point in the history
Merge develop into master
  • Loading branch information
azeem-io authored Apr 23, 2024
2 parents 60246b7 + a30b881 commit 794e402
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
5 changes: 5 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/181.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Quick smol update :)

## 🐛 Fixes

* Fixes all one time alarms getting disabled after alarm ringing or opening app
5 changes: 5 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/182.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Quick smol update :)

## 🐛 Fixes

* Fixes all one time alarms getting disabled after alarm ringing or opening app
5 changes: 5 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/183.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Quick smol update :)

## 🐛 Fixes

* Fixes all one time alarms getting disabled after alarm ringing or opening app
6 changes: 4 additions & 2 deletions lib/alarm/types/schedules/once_alarm_schedule.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ class OnceAlarmSchedule extends AlarmSchedule {
// If the alarm has already been scheduled in the past, disable it.
if (currentScheduleDateTime?.isBefore(DateTime.now()) ?? false) {
_isDisabled = true;
} else {
DateTime alarmDate = getDailyAlarmDate(time);
await _alarmRunner.schedule(alarmDate, description);
_isDisabled = false;
}
DateTime alarmDate = getDailyAlarmDate(time);
await _alarmRunner.schedule(alarmDate, description);
}

@override
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: clock_app
description: An alarm, clock, timer and stowatch app.

publish_to: "none" # Remove this line if you wish to publish to pub.dev
version: 0.4.1+17
version: 0.4.2+18

environment:
sdk: ">=2.18.6 <4.0.0"
Expand Down

0 comments on commit 794e402

Please sign in to comment.