Merge pull request #4996 from ByteHamster/download-fixes

Fixed download service regressions
This commit is contained in:
ByteHamster 2021-03-07 10:16:02 +01:00 committed by GitHub
commit 66557e1cbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

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();
});
} }
} }

View File

@ -222,7 +222,7 @@ public final class DBTasks {
}).start(); }).start();
} }
if (!normalFeeds.isEmpty()) { if (!normalFeeds.isEmpty()) {
DownloadRequester.getInstance().downloadFeeds(context, feeds, loadAllPages, force, initiatedByUser); DownloadRequester.getInstance().downloadFeeds(context, normalFeeds, loadAllPages, force, initiatedByUser);
} }
} }