Move differentiation between XEP-0393 quotes and French quotes to QuoteHelper.
This commit is contained in:
parent
a0bca08997
commit
2db2ca95ce
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue