Workaround layout bug

This commit is contained in:
M66B 2021-02-24 19:56:09 +01:00
parent 6a1600f242
commit 7354b7e0ab
1 changed files with 4 additions and 0 deletions

View File

@ -1060,6 +1060,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
// Line 2
tvSubject.setText(message.subject);
// Workaround layout bug
tvSubject.requestLayout();
tvSubject.invalidate();
if (keywords_header) {
SpannableStringBuilder keywords = getKeywords(message);
tvKeywords.setVisibility(keywords.length() > 0 ? View.VISIBLE : View.GONE);