Fix split second spoiler reveal when quoting a message with a spoiler.

This commit is contained in:
Cody Henthorne
2023-05-19 12:42:52 -04:00
committed by Greyson Parrelli
parent 131f9c4bc9
commit f2846efd2c
9 changed files with 34 additions and 51 deletions

View File

@@ -1512,6 +1512,7 @@ public final class ConversationItem extends RelativeLayout implements BindableCo
int end = messageBody.getSpanEnd(urlSpan);
URLSpan span = new InterceptableLongClickCopyLinkSpan(urlSpan.getURL(), urlClickHandler);
messageBody.setSpan(span, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
messageBody.removeSpan(urlSpan);
}
}
}