Fixed download service notification not being updated to 'Stopping service'

This commit is contained in:
ByteHamster 2021-03-06 21:00:26 +01:00
parent ef24f6d1f4
commit d3bf107363
1 changed files with 5 additions and 3 deletions

View File

@ -643,8 +643,10 @@ public class DownloadService extends Service {
if (notificationUpdater != null) {
notificationUpdater.run();
}
handler.post(() -> {
cancelNotificationUpdater();
stopForeground(true);
stopSelf();
});
}
}