Commit 60f04554 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Mutate user status drawable

parent 47039e84
...@@ -9,8 +9,6 @@ import android.support.graphics.drawable.VectorDrawableCompat ...@@ -9,8 +9,6 @@ import android.support.graphics.drawable.VectorDrawableCompat
import android.util.AttributeSet import android.util.AttributeSet
import android.view.View import android.view.View
import android.widget.FrameLayout import android.widget.FrameLayout
import android.widget.LinearLayout
import chat.rocket.android.widget.R import chat.rocket.android.widget.R
import chat.rocket.android.widget.helper.DrawableHelper import chat.rocket.android.widget.helper.DrawableHelper
import kotlinx.android.synthetic.main.room_list_item.view.* import kotlinx.android.synthetic.main.room_list_item.view.*
...@@ -23,7 +21,7 @@ class RoomListItemView : FrameLayout { ...@@ -23,7 +21,7 @@ class RoomListItemView : FrameLayout {
private val privateChannelDrawable: Drawable? = VectorDrawableCompat.create(resources, R.drawable.ic_lock_white_24dp, null) private val privateChannelDrawable: Drawable? = VectorDrawableCompat.create(resources, R.drawable.ic_lock_white_24dp, null)
private val publicChannelDrawable: Drawable? = VectorDrawableCompat.create(resources, R.drawable.ic_hashtag_white_24dp, null) private val publicChannelDrawable: Drawable? = VectorDrawableCompat.create(resources, R.drawable.ic_hashtag_white_24dp, null)
private val liveChatChannelDrawable: Drawable? = VectorDrawableCompat.create(resources, R.drawable.ic_livechat_white_24dp, null) private val liveChatChannelDrawable: Drawable? = VectorDrawableCompat.create(resources, R.drawable.ic_livechat_white_24dp, null)
private val userStatusDrawable: Drawable? = VectorDrawableCompat.create(resources, R.drawable.ic_user_status_black_24dp, null) private val userStatusDrawable: Drawable? = VectorDrawableCompat.create(resources, R.drawable.ic_user_status_black_24dp, null)?.mutate()
constructor(context: Context) : super(context) { constructor(context: Context) : super(context) {
initialize(context) initialize(context)
...@@ -43,7 +41,7 @@ class RoomListItemView : FrameLayout { ...@@ -43,7 +41,7 @@ class RoomListItemView : FrameLayout {
} }
private fun initialize(context: Context) { private fun initialize(context: Context) {
layoutParams = LinearLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.WRAP_CONTENT) layoutParams = FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.WRAP_CONTENT)
val array = context val array = context
.theme .theme
......
Markdown is supported
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