Merge pull request #3639 from ByteHamster/show-failed-parse-badge

Show update failed badge on parse errors
This commit is contained in:
H. Lehmann 2019-11-22 22:19:43 +01:00 committed by GitHub
commit 1a6cb9bd41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -284,6 +284,7 @@ public class DownloadService extends Service {
saveDownloadStatus(task.getDownloadStatus());
}
} else {
DBWriter.setFeedLastUpdateFailed(request.getFeedfileId(), true);
saveDownloadStatus(task.getDownloadStatus());
}
} else if (type == FeedMedia.FEEDFILETYPE_FEEDMEDIA) {

View File

@ -831,6 +831,7 @@ public class DBWriter {
adapter.open();
adapter.setFeedLastUpdateFailed(feedId, lastUpdateFailed);
adapter.close();
EventBus.getDefault().post(new FeedListUpdateEvent(feedId));
});
}