Commit be7e816a authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Updates material library version.

parent da111591
...@@ -10,7 +10,6 @@ import chat.rocket.android.R ...@@ -10,7 +10,6 @@ import chat.rocket.android.R
import chat.rocket.android.chatrooms.adapter.model.RoomUiModel import chat.rocket.android.chatrooms.adapter.model.RoomUiModel
import chat.rocket.common.model.RoomType import chat.rocket.common.model.RoomType
import chat.rocket.common.model.UserStatus import chat.rocket.common.model.UserStatus
import chat.rocket.common.util.ifNull
import kotlinx.android.synthetic.main.item_chat.view.* import kotlinx.android.synthetic.main.item_chat.view.*
import kotlinx.android.synthetic.main.unread_messages_badge.view.* import kotlinx.android.synthetic.main.unread_messages_badge.view.*
...@@ -57,17 +56,20 @@ class RoomViewHolder(itemView: View, private val listener: (RoomUiModel) -> Unit ...@@ -57,17 +56,20 @@ class RoomViewHolder(itemView: View, private val listener: (RoomUiModel) -> Unit
text_total_unread_messages.isInvisible = true text_total_unread_messages.isInvisible = true
} }
if (room.alert || room.unread != null) { context?.let {
text_timestamp.setTextAppearance( if (room.alert || room.unread != null) {
context, text_timestamp.setTextAppearance(it, R.style.ChatList_Timestamp_Unread_TextView)
R.style.ChatList_Timestamp_Unread_TextView text_last_message.setTextAppearance(
) it,
text_last_message.setTextAppearance( R.style.ChatList_LastMessage_Unread_TextView
context, )
R.style.ChatList_LastMessage_Unread_TextView text_total_unread_messages.text = "!"
) text_total_unread_messages.isVisible = true
text_total_unread_messages.text = "!" } else {
text_total_unread_messages.isVisible = true text_timestamp.setTextAppearance(it, R.style.ChatList_Timestamp_TextView)
text_last_message.setTextAppearance(it, R.style.ChatList_LastMessage_TextView)
text_total_unread_messages.isInvisible = true
}
} }
setOnClickListener { listener(room) } setOnClickListener { listener(room) }
......
...@@ -26,7 +26,7 @@ ext { ...@@ -26,7 +26,7 @@ ext {
playServices : '16.0.0', playServices : '16.0.0',
exoPlayer : '2.8.2', exoPlayer : '2.8.2',
flexbox : '1.1.0', flexbox : '1.1.0',
material : '1.0.0-beta01', material : '1.0.0',
room : '2.0.0', room : '2.0.0',
lifecycle : '2.0.0', lifecycle : '2.0.0',
......
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