Fix issue #636 - Freeze with the app.
This commit is contained in:
parent
15829da776
commit
d7976734ce
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue