kopia lustrzana https://github.com/ryukoposting/Signal-Android
12 wiersze
388 B
Kotlin
12 wiersze
388 B
Kotlin
package org.thoughtcrime.securesms.avatar.text
|
|
|
|
import org.thoughtcrime.securesms.avatar.Avatar
|
|
import org.thoughtcrime.securesms.avatar.AvatarColorItem
|
|
import org.thoughtcrime.securesms.avatar.Avatars
|
|
|
|
data class TextAvatarCreationState(
|
|
val currentAvatar: Avatar.Text
|
|
) {
|
|
fun colors(): List<AvatarColorItem> = Avatars.colors.map { AvatarColorItem(it, currentAvatar.color == it) }
|
|
}
|