Message List: Add en dash to separate sender name and preview text
This commit is contained in:
parent
0a8ed1569e
commit
b3354b4179
2 changed files with 4 additions and 2 deletions
|
@ -343,7 +343,9 @@ class MessageListAdapter internal constructor(
|
|||
val messageStringBuilder = SpannableStringBuilder(beforePreviewText)
|
||||
if (appearance.previewLines > 0) {
|
||||
val preview = getPreview(isMessageEncrypted, previewText)
|
||||
messageStringBuilder.append(" ").append(preview)
|
||||
if (preview.isNotEmpty()) {
|
||||
messageStringBuilder.append(" – ").append(preview)
|
||||
}
|
||||
}
|
||||
holder.preview.setText(messageStringBuilder, TextView.BufferType.SPANNABLE)
|
||||
|
||||
|
|
|
@ -472,7 +472,7 @@ class MessageListAdapterTest : RobolectricTest() {
|
|||
return holder.itemView
|
||||
}
|
||||
|
||||
fun secondLine(senderOrSubject: String, preview: String) = "$senderOrSubject $preview"
|
||||
fun secondLine(senderOrSubject: String, preview: String) = "$senderOrSubject – $preview"
|
||||
|
||||
val View.accountChipView: View get() = findViewById(R.id.account_color_chip)
|
||||
val View.starView: View get() = findViewById(R.id.star)
|
||||
|
|
Loading…
Reference in a new issue