Use checked parameter instead of !isSelected (#50)

* Use checked parameter instead of !isSelected

* Update AGP and gradle versions

* Revert "Update AGP and gradle versions"

This reverts commit c0fd351c82.

* Remove the indentation changes
pull/69/head
Mohammad Ershad Nasri 3 years ago committed by GitHub
parent ca5adc2462
commit e7ee1e11f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -364,7 +364,7 @@ private fun SingleTopicButton(
) )
NiaToggleButton( NiaToggleButton(
checked = isSelected, checked = isSelected,
onCheckedChange = { checked -> onClick(topicId, !isSelected) }, onCheckedChange = { checked -> onClick(topicId, checked) },
icon = { icon = {
Icon( Icon(
imageVector = NiaIcons.Add, contentDescription = name, imageVector = NiaIcons.Add, contentDescription = name,

Loading…
Cancel
Save