Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ff2dd32 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Reorder the drawing of underline/stroke and text"

parents 6c1c5be8 50fe7880
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -824,6 +824,9 @@ public class TextLine {
                wp.setColor(previousColor);
                wp.setColor(previousColor);
            }
            }


            drawTextRun(c, wp, start, end, contextStart, contextEnd, runIsRtl,
                    leftX, y + wp.baselineShift);

            if (numDecorations != 0) {
            if (numDecorations != 0) {
                for (int i = 0; i < numDecorations; i++) {
                for (int i = 0; i < numDecorations; i++) {
                    final DecorationInfo info = decorations.get(i);
                    final DecorationInfo info = decorations.get(i);
@@ -866,8 +869,6 @@ public class TextLine {
                }
                }
            }
            }


            drawTextRun(c, wp, start, end, contextStart, contextEnd, runIsRtl,
                    leftX, y + wp.baselineShift);
        }
        }


        return runIsRtl ? -totalWidth : totalWidth;
        return runIsRtl ? -totalWidth : totalWidth;