collection.items.add(item)
}
}
- collection.items.sortByDescending { it.pubDate }
+ collection.items.sortByDescending { it.date }
collection.itemsLoaded = true
loadFeed(collection)
var feedName: String? = null
var feedUrl: String? = null
+ val date: Instant? get() = updated ?: pubDate
+
var collection: FeedCollection? = null
fun getContent(): Content {
when(col) {
0 -> result = elm.title
1 -> {
- val date = elm.updated ?: elm.pubDate
+ val date = elm.date
date?.let {
val localDate = date.atZone(ZoneId.systemDefault()).toLocalDate()
val now = LocalDate.now()