Commit 7a3dc4c1 authored by narinder Rana's avatar narinder Rana
Browse files

update all icon color on one place

parent 930cf2a0
Pipeline #179535 passed with stage
in 4 minutes and 52 seconds
......@@ -18,8 +18,10 @@
*/
package com.moez.QKSMS.feature.compose.editing
import android.graphics.PorterDuff
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.core.view.isVisible
import androidx.recyclerview.widget.RecyclerView
import com.moez.QKSMS.R
......@@ -63,8 +65,7 @@ class ComposeItemAdapter @Inject constructor(
val layoutInflater = LayoutInflater.from(parent.context)
val view = layoutInflater.inflate(R.layout.contact_list_item, parent, false)
view.icon.setTint(colors.theme().theme)
view.icon.setColorFilter(ContextCompat.getColor(parent.context, R.color.colorAccent));
view.numbers.setRecycledViewPool(numbersViewPool)
view.numbers.adapter = PhoneNumberAdapter()
view.numbers.forwardTouches(view)
......@@ -136,7 +137,7 @@ class ComposeItemAdapter @Inject constructor(
holder.icon.isVisible = prev !is ComposeItem.Starred
holder.icon.setImageResource(R.drawable.ic_star_black_24dp)
holder.icon.setTint(R.color.colorAccent)
holder.avatar.recipients = listOf(createRecipient(contact))
holder.title.text = contact.name
......@@ -152,7 +153,7 @@ class ComposeItemAdapter @Inject constructor(
holder.icon.isVisible = prev !is ComposeItem.Group
holder.icon.setImageResource(R.drawable.ic_people_black_24dp)
holder.icon.setTint(R.color.colorAccent)
holder.avatar.recipients = group.contacts.map(::createRecipient)
holder.title.text = group.title
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment