Merge "Fix paragraph iterator." into jb-dev

This commit is contained in:
Svetoslav Ganov
2012-05-17 17:23:16 -07:00
committed by Android (Google) Code Review

View File

@@ -287,12 +287,12 @@ public final class AccessibilityIterators {
}
}
}
while (start < textLength && mText.charAt(start) == '\n') {
start++;
}
if (start < 0) {
return null;
}
while (start < textLength && mText.charAt(start) == '\n') {
start++;
}
int end = start;
for (int i = end + 1; i < textLength; i++) {
end = i;