Loading presentation/src/main/java/com/moez/QKSMS/feature/conversations/ConversationsAdapter.kt +4 −3 Original line number Diff line number Diff line Loading @@ -93,9 +93,10 @@ class ConversationsAdapter @Inject constructor( view.title.collapseEnabled = conversation.recipients.size > 1 view.title.text = conversation.getTitle() view.date.text = dateFormatter.getConversationTimestamp(conversation.date) view.snippet.text = when (conversation.me) { true -> context.getString(R.string.main_sender_you, conversation.snippet) false -> conversation.snippet view.snippet.text = when { conversation.draft.isNotEmpty() -> context.getString(R.string.main_draft, conversation.draft) conversation.me -> context.getString(R.string.main_sender_you, conversation.snippet) else -> conversation.snippet } view.pinned.isVisible = conversation.pinned } Loading presentation/src/main/res/values/strings.xml +1 −0 Original line number Diff line number Diff line Loading @@ -53,6 +53,7 @@ <string name="main_menu_block">Block</string> <string name="main_syncing">Syncing messages…</string> <string name="main_sender_you">You: %s</string> <string name="main_draft">Draft: %s</string> <string name="main_message_results_title">Results in messages</string> <string name="main_message_results">%d messages</string> <string name="inbox_empty_text">Your conversations will appear here</string> Loading Loading
presentation/src/main/java/com/moez/QKSMS/feature/conversations/ConversationsAdapter.kt +4 −3 Original line number Diff line number Diff line Loading @@ -93,9 +93,10 @@ class ConversationsAdapter @Inject constructor( view.title.collapseEnabled = conversation.recipients.size > 1 view.title.text = conversation.getTitle() view.date.text = dateFormatter.getConversationTimestamp(conversation.date) view.snippet.text = when (conversation.me) { true -> context.getString(R.string.main_sender_you, conversation.snippet) false -> conversation.snippet view.snippet.text = when { conversation.draft.isNotEmpty() -> context.getString(R.string.main_draft, conversation.draft) conversation.me -> context.getString(R.string.main_sender_you, conversation.snippet) else -> conversation.snippet } view.pinned.isVisible = conversation.pinned } Loading
presentation/src/main/res/values/strings.xml +1 −0 Original line number Diff line number Diff line Loading @@ -53,6 +53,7 @@ <string name="main_menu_block">Block</string> <string name="main_syncing">Syncing messages…</string> <string name="main_sender_you">You: %s</string> <string name="main_draft">Draft: %s</string> <string name="main_message_results_title">Results in messages</string> <string name="main_message_results">%d messages</string> <string name="inbox_empty_text">Your conversations will appear here</string> Loading