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

Commit 10b8c51c authored by Gilles Debunne's avatar Gilles Debunne Committed by Android (Google) Code Review
Browse files

Merge "Index out of range problem in TextLine."

parents e2e97ce1 345cb033
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ class TextLine {
    private char[] mChars;
    private boolean mCharsValid;
    private Spanned mSpanned;
    private TextPaint mWorkPaint = new TextPaint();
    private final TextPaint mWorkPaint = new TextPaint();

    private static TextLine[] cached = new TextLine[3];

@@ -658,7 +658,7 @@ class TextLine {
                    flags, offset, cursorOpt);
        } else {
            return wp.getTextRunCursor(mText, mStart + spanStart,
                    mStart + spanLimit, flags, mStart + offset, cursorOpt);
                    mStart + spanLimit, flags, mStart + offset, cursorOpt) - mStart;
        }
    }