mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-18 21:28:54 +00:00
Fixed centered lines
This commit is contained in:
parent
b7cdf5a6e1
commit
5aed62a256
2 changed files with 2 additions and 2 deletions
|
@ -2375,7 +2375,7 @@ public class HtmlHelper {
|
|||
setSpan(ssb, new StyleSpan(Typeface.BOLD), start, ssb.length());
|
||||
break;
|
||||
case "hr":
|
||||
// Suppress succesive lines
|
||||
// Suppress successive lines
|
||||
LineSpan[] lines = ssb.getSpans(0, ssb.length(), LineSpan.class);
|
||||
int last = -1;
|
||||
if (lines != null)
|
||||
|
|
|
@ -54,7 +54,7 @@ public class LineSpan extends ReplacementSpan {
|
|||
paint.setStrokeWidth(strokeWidth);
|
||||
if (dashLength != 0)
|
||||
paint.setPathEffect(new DashPathEffect(new float[]{dashLength, dashLength}, 0));
|
||||
canvas.drawLine(x, ypos, canvas.getWidth(), ypos, paint);
|
||||
canvas.drawLine(0, ypos, canvas.getWidth(), ypos, paint);
|
||||
paint.setColor(c);
|
||||
paint.setStrokeWidth(s);
|
||||
paint.setPathEffect(p);
|
||||
|
|
Loading…
Reference in a new issue