use of de.danoeh.antennapod.event.FeedListUpdateEvent in project AntennaPod by AntennaPod.
the class DBWriter method setFeedLastUpdateFailed.
/**
* Saves if a feed's last update failed
*
* @param lastUpdateFailed true if last update failed
*/
public static Future<?> setFeedLastUpdateFailed(final long feedId, final boolean lastUpdateFailed) {
return dbExec.submit(() -> {
PodDBAdapter adapter = PodDBAdapter.getInstance();
adapter.open();
adapter.setFeedLastUpdateFailed(feedId, lastUpdateFailed);
adapter.close();
EventBus.getDefault().post(new FeedListUpdateEvent(feedId));
});
}
Aggregations