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

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

Merge "Correct missed use of work paint for hyphenation"

parents ede3b6f8 53aba29e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1242,7 +1242,7 @@ public abstract class Layout {
        final TextPaint paint = mWorkPaint;
        paint.set(mPaint);
        paint.setHyphenEdit(getHyphen(line));
        tl.set(mPaint, mText, start, end, dir, directions, hasTabs, tabStops);
        tl.set(paint, mText, start, end, dir, directions, hasTabs, tabStops);
        if (isJustificationRequired(line)) {
            tl.justify(getJustifyWidth(line));
        }
@@ -1270,7 +1270,7 @@ public abstract class Layout {
        final TextPaint paint = mWorkPaint;
        paint.set(mPaint);
        paint.setHyphenEdit(getHyphen(line));
        tl.set(mPaint, mText, start, end, dir, directions, hasTabs, tabStops);
        tl.set(paint, mText, start, end, dir, directions, hasTabs, tabStops);
        if (isJustificationRequired(line)) {
            tl.justify(getJustifyWidth(line));
        }