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

View File

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