Use /sources/stats in the home #133
@ -61,7 +61,7 @@ class SourcesListAdapter(
|
||||
c.circularBitmapDrawable(itm.getIcon(repository.baseUrl), binding.itemImage)
|
||||
}
|
||||
|
||||
if (itm.error.isNullOrBlank()) {
|
||||
if (!itm.error.isNullOrBlank()) {
|
||||
AmineB marked this conversation as resolved
Outdated
|
||||
binding.errorText.visibility = View.VISIBLE
|
||||
binding.errorText.text = itm.error
|
||||
} else {
|
||||
|
@ -96,24 +96,6 @@ class SelfossModel {
|
||||
params = null
|
||||
)
|
||||
|
||||
fun update(sourceStat: SourceStats) {
|
||||
if (this.id != sourceStat.id || this.title != sourceStat.title) {
|
||||
throw Exception()
|
||||
}
|
||||
this.unread = sourceStat.unread
|
||||
}
|
||||
|
||||
fun update(sourceDetail: SourceDetail) {
|
||||
if (this.id != sourceDetail.id || this.title != sourceDetail.title) {
|
||||
throw Exception()
|
||||
}
|
||||
this.tags = sourceDetail.tags
|
||||
this.spout = sourceDetail.spout
|
||||
this.error = sourceDetail.error
|
||||
this.icon = sourceDetail.icon
|
||||
this.params = sourceDetail.params
|
||||
}
|
||||
|
||||
fun update(source: Source) {
|
||||
if (this.id != source.id || this.title != source.title) {
|
||||
throw Exception()
|
||||
|
Loading…
Reference in New Issue
Block a user
This does not make sens. If the error is null or blank, the error text should not be displayed.