Commit d7976734 authored by Thomas's avatar Thomas
Browse files

Fix issue #636 - Freeze with the app.

parent 15829da7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -494,7 +494,9 @@ public class SpannableHelper {
                contentUrl = new SpannableString(Html.fromHtml(value, Html.FROM_HTML_MODE_LEGACY));
            else
                contentUrl = new SpannableString(Html.fromHtml(value));

            if (contentUrl.toString().trim().isEmpty()) {
                continue;
            }
            Pattern word = Pattern.compile(Pattern.quote(contentUrl.toString()));
            Matcher matcherLink = word.matcher(content);
            while (matcherLink.find()) {