This commit is contained in:
Mariotaku Lee 2017-10-04 02:09:01 +08:00
parent a4f3bd1c77
commit 73dc2385fb
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
1 changed files with 7 additions and 2 deletions

View File

@ -250,9 +250,14 @@ class DetailStatusViewHolder(
summaryView.hideIfEmpty()
if (displayEnd != -1 && displayEnd <= text.length) {
textView.spannable = text.subSequence(0, displayEnd)
val displayText = text.subSequence(0, displayEnd)
if (!TextUtils.equals(textView.text, displayText)) {
textView.spannable = displayText
}
} else {
textView.spannable = text
if (!TextUtils.equals(textView.text, text)) {
textView.spannable = text
}
}
textView.hideIfEmpty()