Do not change spinner text color if there is only one account

This commit is contained in:
Juha Heinanen
2022-03-11 13:39:35 +02:00
parent 6406f15617
commit 0bb65032f9

View File

@ -47,7 +47,7 @@ class UaSpinnerAdapter(private val cxt: Context, private val uas: ArrayList<User
val ua = uas[position]
viewHolder.textView.text = ua.account.aor.split(":")[1]
viewHolder.textView.textSize = 17f
if (ua.calls().isNotEmpty())
if (UserAgent.uas().size > 1 && ua.calls().isNotEmpty())
viewHolder.textView.setTextColor(getColor(cxt, R.color.colorRed))
viewHolder.imageView.setImageResource(images[position])