simple-linkable-text icon indicating copy to clipboard operation
simple-linkable-text copied to clipboard

Text is not displayed

Open vsoftphuong opened this issue 8 years ago • 1 comments

Text is not displayed. If text = "abcdef" it will not show. How to fix it, please?

vsoftphuong avatar Sep 23 '16 09:09 vsoftphuong

I fixed by: In class LinkModifier change:

public void build() { if (mViewType == ViewType.EDIT_TEXT) { mText = mSpannable.toString(); removePreviousSpans(); } else { mSpannable = SpannableString.valueOf(mText); // mSpannable = null; }

    convertPatternsToLinks();
    validateTextLinks();

    for (Link link : mFoundLinks) {
        addLinkToSpan(link);
    }
}

Cheese!

vsoftphuong avatar Sep 23 '16 09:09 vsoftphuong