Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca9b9b21 authored by narinder Rana's avatar narinder Rana
Browse files

update Avatar as feedback

parent 53308c4b
Loading
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -75,6 +75,7 @@ class AvatarView @JvmOverloads constructor(
        photoUri = recipient?.contact?.photoUri
        lastUpdated = recipient?.contact?.lastUpdate
       // theme = colors.theme(recipient)

        updateView()
    }

@@ -89,8 +90,10 @@ class AvatarView @JvmOverloads constructor(
    private fun updateView() {
        // Apply theme
       // setBackgroundTint(theme.theme)
        initial.setTextColor(ContextCompat.getColor(context, R.color.avatar_icon_color))
        icon.setTint(ContextCompat.getColor(context,  R.color.avatar_icon_color))

        initial.setTextColor(ContextCompat.getColor(context, R.color.avatar_text_color))
        icon.clearColorFilter()
        icon.setTint(ContextCompat.getColor(context,  R.color.avatar_text_color))
        val initials = fullName
                ?.substringBefore(',')
                ?.split(" ").orEmpty()
+1 −0
Original line number Diff line number Diff line
@@ -80,6 +80,7 @@
    <color name="red_draft">#FF5D5D</color>
    <color name="avatar_bg_color">#e0e0e0</color>
    <color name="avatar_icon_color">#BD000000</color>
    <color name="avatar_text_color">#383838</color>


    <array name="random_colors">