mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-23 09:10:04 +02:00
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