Remove prev. error notif if any when bg update checking

This commit is contained in:
Imran Remtulla
2022-08-27 16:41:01 -04:00
parent c14c4d2f14
commit 5bdab1b1e4

View File

@ -21,6 +21,8 @@ void bgTaskCallback() {
var notificationsProvider = NotificationsProvider();
await notificationsProvider.notify(checkingUpdatesNotification);
try {
await notificationsProvider
.cancel(ErrorCheckingUpdatesNotification('').id);
await appsProvider.loadApps();
List<App> updates = await appsProvider.checkUpdates();
if (updates.isNotEmpty) {