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

Commit 60b0983a authored by Haoyu Zhang's avatar Haoyu Zhang
Browse files

Fixed lineBackgroundSpan not called for first line

Bug: 1526775
Test: atest StaticLayoutTest LayoutTest

Change-Id: I71e4e5a14e385df6a79cca7cb7c5e2da15ac5cec
parent a78ee6b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -619,7 +619,7 @@ public abstract class Layout {
                    previousLineBottom = lbottom;
                    int lbaseline = lbottom - getLineDescent(i);

                    if (start >= spanEnd) {
                    if (end >= spanEnd) {
                        // These should be infrequent, so we'll use this so that
                        // we don't have to check as often.
                        spanEnd = mLineBackgroundSpans.getNextTransition(start, textLength);