Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在无内容时this.getSelectionStart()为-1,导致插入时崩溃 #9

Open
junixapp opened this issue Feb 19, 2019 · 3 comments
Open

Comments

@junixapp
Copy link

image

@sunhapper
Copy link
Owner

是不是内容为空的时候insertSpecialStr(CharSequence showContent, boolean rollBack, Object customData,Object customSpan),rollBack设成true了,这个是为了响应输入@之后插入字符,需要将之前的@删掉,内容为空时或者不需要回删一个字符时应该传false
另外建议使用1.0.0中com.sunhapper.x.spedit包下的代码,实现的更清晰些,之前的代码不再维护了

@junixapp
Copy link
Author

@sunhapper
true和false都试过了,都崩溃

@sunhapper
Copy link
Owner

不太清楚你项目里面的用法,能写个实例传github上或者发下调用的地方的代码,描述下操作路径

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants