```val color = if(device.conected) R.color.materi...
# announcements
f
Copy code
val color =  if(device.conected) R.color.material_green_500 else R.color.material_grey_500
connected.colorFilter = ContextCompat.getColor(context, color)
less concise, maybe more readable
➕ 1