Workaround layout bug

pull/194/head
M66B 4 years ago
parent 6a1600f242
commit 7354b7e0ab

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

Loading…
Cancel
Save