forked from mirrors/Fedilab
Fix issue #636 - Freeze with the app.
This commit is contained in:
parent
15829da776
commit
d7976734ce
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue