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

Text is not displayed #11

Open
vsoftphuong opened this issue Sep 23, 2016 · 1 comment
Open

Text is not displayed #11

vsoftphuong opened this issue Sep 23, 2016 · 1 comment

Comments

@vsoftphuong
Copy link

vsoftphuong commented Sep 23, 2016

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

@vsoftphuong
Copy link
Author

vsoftphuong commented Sep 23, 2016

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!

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

No branches or pull requests

1 participant