Do not edit the repository items from outside the repository
Some checks are pending
continuous-integration/drone/pr Build is running

This commit is contained in:
davidoskky 2022-11-01 21:29:04 +01:00
parent c5cdfc0d53
commit 02d734eee8

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
}
}