SpEditTool icon indicating copy to clipboard operation
SpEditTool copied to clipboard

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

Open junixapp opened this issue 5 years ago • 3 comments

image

junixapp avatar Feb 19 '19 09:02 junixapp

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

sunhapper avatar Feb 19 '19 09:02 sunhapper

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

junixapp avatar Feb 20 '19 00:02 junixapp

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

sunhapper avatar Feb 20 '19 01:02 sunhapper