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

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

update avatar icon color

parent b20c6c95
Loading
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import android.util.TypedValue
import android.view.ContextThemeWrapper
import android.view.View
import android.widget.FrameLayout
import androidx.core.content.ContextCompat
import com.bumptech.glide.signature.ObjectKey
import com.moez.QKSMS.R
import com.moez.QKSMS.common.Navigator
@@ -36,6 +37,7 @@ import com.moez.QKSMS.model.Recipient
import com.moez.QKSMS.util.GlideApp
import com.moez.QKSMS.util.Preferences
import kotlinx.android.synthetic.main.avatar_view.view.*
import kotlinx.android.synthetic.main.compose_activity.*
import javax.inject.Inject

class AvatarView @JvmOverloads constructor(
@@ -88,8 +90,7 @@ class AvatarView @JvmOverloads constructor(
        // Apply theme
        setBackgroundTint(theme.theme)
        initial.setTextColor(theme.textPrimary)
        icon.setTint(theme.textPrimary)

        icon.setTint(ContextCompat.getColor(context, R.color.colorPrimaryDark))
        val initials = fullName
                ?.substringBefore(',')
                ?.split(" ").orEmpty()