Move differentiation between XEP-0393 quotes and French quotes to QuoteHelper.

This commit is contained in:
Millesimus 2021-08-22 08:55:46 +02:00 committed by Daniel Gultsch
parent a0bca08997
commit 2db2ca95ce
2 changed files with 3 additions and 5 deletions

View File

@ -371,9 +371,8 @@ public class MessageAdapter extends ArrayAdapter<Message> {
if (lineStart == -1) {
if (previous == '\n') {
if (
(QuoteHelper.isPositionQuoteStart(body, i)
|| (current == '\u00bb' && !UIHelper.isPositionFollowedByQuote(body, i)
))) {
QuoteHelper.isPositionQuoteStart(body, i)
) {
// Line start with quote
lineStart = i;
if (quoteStart == -1) quoteStart = i;

View File

@ -70,8 +70,7 @@ public class MessageUtils {
continue;
}
final char c = line.charAt(0);
if (QuoteHelper.isNestedTooDeeply(line)
|| (c == '\u00bb' && !UIHelper.isPositionFollowedByQuote(line, 0))) {
if (QuoteHelper.isNestedTooDeeply(line)) {
continue;
}
if (builder.length() != 0) {