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 (lineStart == -1) {
|
||||||
if (previous == '\n') {
|
if (previous == '\n') {
|
||||||
if (
|
if (
|
||||||
(QuoteHelper.isPositionQuoteStart(body, i)
|
QuoteHelper.isPositionQuoteStart(body, i)
|
||||||
|| (current == '\u00bb' && !UIHelper.isPositionFollowedByQuote(body, i)
|
) {
|
||||||
))) {
|
|
||||||
// Line start with quote
|
// Line start with quote
|
||||||
lineStart = i;
|
lineStart = i;
|
||||||
if (quoteStart == -1) quoteStart = i;
|
if (quoteStart == -1) quoteStart = i;
|
||||||
|
|
|
@ -70,8 +70,7 @@ public class MessageUtils {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
final char c = line.charAt(0);
|
final char c = line.charAt(0);
|
||||||
if (QuoteHelper.isNestedTooDeeply(line)
|
if (QuoteHelper.isNestedTooDeeply(line)) {
|
||||||
|| (c == '\u00bb' && !UIHelper.isPositionFollowedByQuote(line, 0))) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (builder.length() != 0) {
|
if (builder.length() != 0) {
|
||||||
|
|
Loading…
Reference in a new issue