diff options
| author | 2010-06-17 10:05:11 -0700 | |
|---|---|---|
| committer | 2010-06-17 10:05:11 -0700 | |
| commit | 10b8c51c4835b5ac8a96593172feced882fc06bc (patch) | |
| tree | d6ada473a075baf064c7ac8c8f7a45151c05145d | |
| parent | e2e97ce1161e5bf89ef8b5ce6a12be0f16dea23e (diff) | |
| parent | 345cb03315a0813ec57e44f97fc3fa4af6b3c309 (diff) | |
Merge "Index out of range problem in TextLine."
| -rw-r--r-- | core/java/android/text/TextLine.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/text/TextLine.java b/core/java/android/text/TextLine.java index e0ccbb41eb46..33c95548f905 100644 --- a/core/java/android/text/TextLine.java +++ b/core/java/android/text/TextLine.java @@ -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; } } |