Fix issue #636 - Freeze with the app.

This commit is contained in:
Thomas 2022-12-15 10:46:31 +01:00
parent 15829da776
commit d7976734ce
1 changed files with 3 additions and 1 deletions

View File

@ -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()) {