Remove hardcoded string

This commit is contained in:
Moez Bhatti
2018-04-09 16:07:14 -04:00
parent b3ef24b055
commit 0daafe8fc6
2 changed files with 5 additions and 1 deletions
@@ -76,7 +76,10 @@ class ConversationsAdapter @Inject constructor(
view.avatars.contacts = conversation.recipients
view.title.text = conversation.getTitle()
view.date.text = dateFormatter.getConversationTimestamp(conversation.date)
view.snippet.text = if (conversation.me) "You: ${conversation.snippet}" else conversation.snippet
view.snippet.text = when(conversation.me) {
true -> context.getString(R.string.main_sender_you, conversation.snippet)
false -> conversation.snippet
}
}
override fun getItemId(index: Int): Long {