Use heroes to render room avatars
This commit is contained in:
parent
a199a8605f
commit
ad02e05bf4
11 changed files with 79 additions and 10 deletions
|
|
@ -53,7 +53,7 @@ fun CompositeAvatar(
|
|||
}
|
||||
when (numberOfHeroes) {
|
||||
0 -> {
|
||||
// Cannot happen
|
||||
error("Unsupported number of heroes: 0")
|
||||
}
|
||||
1 -> {
|
||||
Avatar(heroes[0], modifier, contentDescription)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue