This commit is contained in:
parent
97793a7fc8
commit
6ace50c306
@ -61,7 +61,7 @@ class SourcesListAdapter(
|
||||
c.circularBitmapDrawable(itm.getIcon(repository.baseUrl), binding.itemImage)
|
||||
}
|
||||
|
||||
if (itm.error.isNullOrBlank()) {
|
||||
if (!itm.error.isNullOrBlank()) {
|
||||
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