forked from mirror/monocles_chat_clean
Use FixedURLSpan for xhtml-im
(cherry picked from commit 0cfd3783eba44437713a2ca464f1eb22ee5a230b)
This commit is contained in:
parent
280a9e8eb9
commit
fb4f2099f3
1 changed files with 2 additions and 0 deletions
|
@ -58,6 +58,7 @@ import eu.siacs.conversations.crypto.axolotl.AxolotlService;
|
|||
import eu.siacs.conversations.crypto.axolotl.FingerprintStatus;
|
||||
import eu.siacs.conversations.http.URL;
|
||||
import eu.siacs.conversations.services.AvatarService;
|
||||
import eu.siacs.conversations.ui.text.FixedURLSpan;
|
||||
import eu.siacs.conversations.ui.util.MyLinkify;
|
||||
import eu.siacs.conversations.ui.util.PresenceSelector;
|
||||
import eu.siacs.conversations.ui.util.QuoteHelper;
|
||||
|
@ -1151,6 +1152,7 @@ public class Message extends AbstractEntity implements AvatarService.Avatarable
|
|||
int i = spannable.length();
|
||||
while(--i >= 0 && Character.isWhitespace(spannable.charAt(i))) { }
|
||||
spannableBody = (SpannableStringBuilder) spannable.subSequence(0, i+1);
|
||||
FixedURLSpan.fix(spannableBody);
|
||||
}
|
||||
|
||||
if (includeReplyTo && getInReplyTo() != null && getModerated() == null) {
|
||||
|
|
Loading…
Reference in a new issue