Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 462bdc4f authored by Fahim Salam Chowdhury's avatar Fahim Salam Chowdhury 👽
Browse files

Fix unread messageListItem textView typeFace mismatch issue

parent 21d8199d
Loading
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -165,7 +165,6 @@ class MessageListAdapter internal constructor(
        }

        with(message) {
            val maybeBoldTypeface = if (isRead) Typeface.NORMAL else Typeface.BOLD
            val displayDate = relativeDateTimeFormatter.formatDate(messageDate)
            val displayThreadCount = if (appearance.showingThreadedList) threadCount else 0
            val subject = MlfUtils.buildSubject(subject, res.getString(R.string.general_no_subject), displayThreadCount)
@@ -181,7 +180,6 @@ class MessageListAdapter internal constructor(
            holder.unreadMessageIndicator.visibility = if (isRead) INVISIBLE else VISIBLE
            val beforePreviewText = if (appearance.senderAboveSubject) subject else displayName
            holder.displayName.setText(beforePreviewText, TextView.BufferType.SPANNABLE)
            formatDisplayText(holder.displayName, isRead)
            if (appearance.previewLines > 0) {
                val preview = getPreview(isMessageEncrypted, previewText)
                holder.preview.setText(preview, TextView.BufferType.SPANNABLE)
@@ -189,7 +187,6 @@ class MessageListAdapter internal constructor(
                holder.preview.visibility = GONE
            }

            holder.subject.typeface = Typeface.create(holder.subject.typeface, maybeBoldTypeface)
            if (appearance.senderAboveSubject) {
                holder.subject.text = displayName
            } else {