Remove quote span from preview, unless it is everything

(cherry picked from commit 3f2afaf2fa9476b362618b38166014fb44e806d6)
This commit is contained in:
Stephen Paul Weber 2024-06-05 21:23:18 -05:00 committed by Arne
parent 4397fb337f
commit 429c968248

View file

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