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

This commit is contained in:
TreeHugger Robot
2018-05-22 20:26:58 +00:00
committed by Android (Google) Code Review

View File

@@ -824,6 +824,9 @@ public class TextLine {
wp.setColor(previousColor);
}
drawTextRun(c, wp, start, end, contextStart, contextEnd, runIsRtl,
leftX, y + wp.baselineShift);
if (numDecorations != 0) {
for (int i = 0; i < numDecorations; 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;