This commit is contained in:
2026-05-20 17:51:44 +08:00
parent 246b39ca1a
commit e6a3c1605f
9 changed files with 77 additions and 29 deletions

View File

@@ -50,7 +50,12 @@ class FamilySwitchAdapter(
) : RecyclerView.ViewHolder(binding.root) {
fun bind(item: FamilyItem, isSelected: Boolean) {
binding.tvFamilyName.text = item.name
val displayName = if (item.role == "appadmin") {
binding.root.context.getString(R.string.my_family_admin, item.name)
} else {
binding.root.context.getString(R.string.family_member, item.name)
}
binding.tvFamilyName.text = displayName
binding.root.setBackgroundColor(
ContextCompat.getColor(