bravoborja/ReadMoreTextView

will not work with text having space,newline or tab

chikka opened this issue · 3 comments

It is causing crash when tried with text having newline character,tab or space.

same issue, any fix for this one?

@loalex you can use this forked library where I have fixed it. I have already generated PR for that library.

@loalex you can use this forked library where I have fixed it. I have already generated PR for that library.

no luck, same error.

2018-12-19 16:46:22.762 24696-24696/com.owoh.dev E/XgStat: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.text.Layout.getLineCount()' on a null object reference
at com.devs.readmoreoption.ReadMoreOption$1.run(ReadMoreOption.java:90)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)