mathew-kurian / TextJustify-Android

:page_facing_up: Android Text Full Jusiftication / Wrapping / Justify / Hyphenate - V2.0
https://github.com/bluejamesbond/TextJustify-Android/wiki
Apache License 2.0
1.86k stars 370 forks source link

IndexOutOfBoundsException while measuring... #55

Closed Shuhrat-java closed 9 years ago

Shuhrat-java commented 9 years ago

Hello, I have android 2.3.6 phone device. Sometimes I get IndexOutOfBoundsException on SpannableDocumentLayout class starting from the 230 line: // Use the line-height of the next line y += enableLineBreak * (-staticLayout.getLineAscent(lineNumber + 1) + staticLayout .getLineDescent(lineNumber + 1)); I debug and see that error comes from staticLayout.getLineAscent(lineNumber + 1) part.

mathew-kurian commented 9 years ago

Can you provide me the version number of TextJustify you are using?

Shuhrat-java commented 9 years ago

Android version on my phone 2.3.6, SDK version 10

mathew-kurian commented 9 years ago

@Shuhratjava I meant the version of TextJustify

Shuhrat-java commented 9 years ago

Version is 2.0.4

mathew-kurian commented 9 years ago

Interesting. Ill review it and let you know by tomorrow.

mathew-kurian commented 9 years ago

Try 2.0.5 and let me know