Skip to content

Commit

Permalink
hotfix: call reload inside SettingsProvider.ensureInitialized if sing…
Browse files Browse the repository at this point in the history
…leton was already initialized

* In some cases, Dart VM may still be alive in background & may still keep old snoozedUntil value, causing notification to show when it actually should not.
* Having this call present causes value to be updated again from hive database, once likely updated from notification snooze buttons.
  • Loading branch information
alexmercerind committed Jul 9, 2022
1 parent b93b469 commit d9e6441
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/providers/settings_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ class SettingsProvider extends ChangeNotifier {
debugPrint(exception.toString());
debugPrint(stacktrace.toString());
}
await instance.reload();
return instance;
}

Expand Down

0 comments on commit d9e6441

Please sign in to comment.