From 6305f19f0ce05e8ccf0bde318241cec77b8715bf Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Mon, 29 Jan 2018 22:11:12 +0100 Subject: [PATCH] fix bug where sometimes a mention would be underlined --- .../main/java/com/keylesspalace/tusky/util/LinkHelper.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/com/keylesspalace/tusky/util/LinkHelper.java b/app/src/main/java/com/keylesspalace/tusky/util/LinkHelper.java index 52ae7224..5d1c3c60 100644 --- a/app/src/main/java/com/keylesspalace/tusky/util/LinkHelper.java +++ b/app/src/main/java/com/keylesspalace/tusky/util/LinkHelper.java @@ -116,6 +116,10 @@ public class LinkHelper { }; builder.removeSpan(span); builder.setSpan(newSpan, start, end, flags); + } else { + ClickableSpan newSpan = new CustomURLSpan(span.getURL()); + builder.removeSpan(span); + builder.setSpan(newSpan, start, end, flags); } } else { ClickableSpan newSpan = new CustomURLSpan(span.getURL());