fix bug where sometimes a mention would be underlined

main
Conny Duck 7 years ago
parent eba7445bac
commit 04b7c4a775
  1. 4
      app/src/main/java/com/keylesspalace/tusky/util/LinkHelper.java

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

Loading…
Cancel
Save