fix bug where sometimes a mention would be underlined

This commit is contained in:
Conny Duck 2018-01-29 22:11:12 +01:00
parent f18f759c10
commit 6305f19f0c
1 changed files with 4 additions and 0 deletions

View File

@ -116,6 +116,10 @@ public class LinkHelper {
}; };
builder.removeSpan(span); builder.removeSpan(span);
builder.setSpan(newSpan, start, end, flags); builder.setSpan(newSpan, start, end, flags);
} else {
ClickableSpan newSpan = new CustomURLSpan(span.getURL());
builder.removeSpan(span);
builder.setSpan(newSpan, start, end, flags);
} }
} else { } else {
ClickableSpan newSpan = new CustomURLSpan(span.getURL()); ClickableSpan newSpan = new CustomURLSpan(span.getURL());