will not work with text having space,newline or tab
chikka opened this issue · 3 comments
chikka commented
It is causing crash when tried with text having newline character,tab or space.
loalexzzzz commented
same issue, any fix for this one?
chikka commented
loalexzzzz commented
@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)