Skip to content

Commit

Permalink
fix reschedule notifications after restoring db file
Browse files Browse the repository at this point in the history
  • Loading branch information
jenspfahl committed Dec 21, 2022
1 parent 43cbb56 commit edb2955
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
5 changes: 3 additions & 2 deletions lib/ui/pages/ScheduledTaskList.dart
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,9 @@ class ScheduledTaskListState extends PageScaffoldState<ScheduledTaskList> with A

@override
reload() {
_notificationService.cancelAllNotifications();
_loadSchedules(rescheduleNotification: true);
_notificationService.cancelAllNotifications().then((value) {
_loadSchedules(rescheduleNotification: true);
});
}

@override
Expand Down
1 change: 1 addition & 0 deletions metadata/en-US/changelogs/10202.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* fix reschedule notifications after restoring db file
12 changes: 6 additions & 6 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ packages:
name: build_runner
url: "https://pub.dartlang.org"
source: hosted
version: "2.3.2"
version: "2.3.3"
build_runner_core:
dependency: transitive
description:
Expand Down Expand Up @@ -133,7 +133,7 @@ packages:
name: code_builder
url: "https://pub.dartlang.org"
source: hosted
version: "4.3.0"
version: "4.4.0"
collection:
dependency: transitive
description:
Expand Down Expand Up @@ -217,7 +217,7 @@ packages:
name: file_picker
url: "https://pub.dartlang.org"
source: hosted
version: "5.2.3"
version: "5.2.4"
fixnum:
dependency: transitive
description:
Expand Down Expand Up @@ -671,7 +671,7 @@ packages:
name: shared_preferences_linux
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
version: "2.1.2"
shared_preferences_macos:
dependency: transitive
description:
Expand Down Expand Up @@ -699,7 +699,7 @@ packages:
name: shared_preferences_windows
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
version: "2.1.2"
shelf:
dependency: transitive
description:
Expand Down Expand Up @@ -935,7 +935,7 @@ packages:
name: win32
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.2"
version: "3.1.3"
xdg_directories:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.2.1+10201
version: 1.2.2+10202

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down

0 comments on commit edb2955

Please sign in to comment.