Immediately update bottom badges after reading or starring articles #91

Merged
AmineB merged 4 commits from davidoskky/ReaderForSelfoss-multiplatform:badges into master 2022-11-02 19:06:48 +00:00
Showing only changes of commit 02d734eee8 - Show all commits

View File

@ -111,13 +111,11 @@ class ItemCardAdapter(
CoroutineScope(Dispatchers.IO).launch {
repository.unstarr(item)
}
item.starred = false
binding.favButton.isSelected = false
} else {
CoroutineScope(Dispatchers.IO).launch {
repository.starr(item)
}
item.starred = true
binding.favButton.isSelected = true
}
}