jaychang0917 / SimpleText

A simple spannable string helper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

点击事件执行了两次

DanteAndroid opened this issue · comments

commented
            SimpleText sText = SimpleText.create(helper.itemView.getContext(), content)
                    .first(recipient)
                    .pressedTextColor(R.color.btg_global_text_blue)
                    .onClick((charSequence, range, o) -> {
                        if (listener != null) {
**这里执行了两次**
                            listener.onItemClick(helper.getAdapterPosition());
                        }
                    });
            sText.linkify(commentContent);
            commentContent.setText(sText);
commented

Should be fixed in the version 2.0.0