Small improvement

pull/172/head
M66B 6 years ago
parent 8bcf0ff6f6
commit c6c307a575

@ -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,

@ -316,7 +316,6 @@
android:layout_marginEnd="6dp"
android:ellipsize="end"
android:fontFamily="monospace"
android:maxLines="2"
android:text="Preview"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textStyle="italic"

@ -313,7 +313,6 @@
android:layout_marginEnd="6dp"
android:ellipsize="end"
android:fontFamily="monospace"
android:maxLines="2"
android:text="Preview"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textStyle="italic"

Loading…
Cancel
Save