mirror of https://github.com/M66B/FairEmail.git
Workaround layout bug
This commit is contained in:
parent
6a1600f242
commit
7354b7e0ab
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue