mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-16 14:42:21 +01:00
Remove quote span from preview, unless it is everything
(cherry picked from commit 3f2afaf2fa9476b362618b38166014fb44e806d6)
This commit is contained in:
parent
4397fb337f
commit
429c968248
1 changed files with 2 additions and 0 deletions
|
@ -390,7 +390,9 @@ public class UIHelper {
|
|||
for (final android.text.style.QuoteSpan quote : Lists.reverse(Lists.newArrayList(styledBody.getSpans(0, styledBody.length(), android.text.style.QuoteSpan.class)))) {
|
||||
int start = styledBody.getSpanStart(quote);
|
||||
int end = styledBody.getSpanEnd(quote);
|
||||
if (start == 0 && end == styledBody.length()) continue;
|
||||
styledBody.delete(start, end);
|
||||
styledBody.removeSpan(quote);
|
||||
}
|
||||
if (!processMarkup) return new Pair<>(styledBody, false);
|
||||
|
||||
|
|
Loading…
Reference in a new issue