Small improvement

This commit is contained in:
M66B
2020-01-26 14:13:37 +01:00
parent 8bcf0ff6f6
commit c6c307a575
3 changed files with 4 additions and 3 deletions

View File

@@ -911,7 +911,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (tvPreview.getTag() == null || (int) tvPreview.getTag() != textColor) {
tvPreview.setTag(textColor);
tvPreview.setTextColor(textColor);
tvPreview.setMaxLines(preview_lines);
if (preview_lines == 1)
tvPreview.setSingleLine(true);
else
tvPreview.setMaxLines(preview_lines);
}
tvPreview.setTypeface(
monospaced ? Typeface.MONOSPACE : Typeface.DEFAULT,