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) {
notificationUpdater.run();
}
handler.post(() -> {
cancelNotificationUpdater();
stopForeground(true);
stopSelf();
});
}
}

View File

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