Skip to content

Commit f13f173

Browse files
committed
Adjust item alpha based on installation status
1 parent 692aefd commit f13f173

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/src/main/java/com/wstxda/switchai/ui/viewholder/AssistantSelectorItemViewHolder.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,14 @@ class AssistantSelectorItemViewHolder(
3030

3131
if (item.isInstalled) {
3232
binding.pinButton.visibility = View.VISIBLE
33+
itemView.alpha = 1f
3334
binding.pinButton.setOnClickListener {
3435
onPinClicked(item.key)
3536
it.context.buttonVibration()
3637
}
3738
} else {
3839
binding.pinButton.visibility = View.GONE
40+
itemView.alpha = 0.6f
3941
}
4042

4143
itemView.setOnClickListener {

0 commit comments

Comments
 (0)