aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/ui
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-03-26 20:13:28 +0200
committerChristian Schneppe <christian@pix-art.de>2017-03-26 21:44:05 +0200
commite1feeb7571657cc442f59f5905796c3086fb3903 (patch)
tree7d6ccc38dafc877ad5e3597a38df973db4908a81 /src/main/java/de/pixart/messenger/ui
parent69b66b3d2781bfa63dd327ac2a102354d5306df8 (diff)
made a few exceptions to quote parser for emoticons and quotes
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui')
-rw-r--r--src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java b/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java
index c608d1b21..bb36f41e0 100644
--- a/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java
+++ b/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java
@@ -406,7 +406,8 @@ public class MessageAdapter extends ArrayAdapter<Message> implements CopyTextVie
char current = body.length() > i ? body.charAt(i) : '\n';
if (lineStart == -1) {
if (previous == '\n') {
- if ((current == '>' && UIHelper.isPositionFollowedByQuoteableCharacter(body,i)) || current == '\u00bb') {
+ if ((current == '>' && UIHelper.isPositionFollowedByQuoteableCharacter(body, i))
+ || current == '\u00bb' && !UIHelper.isPositionFollowedByQuote(body, i)) {
// Line start with quote
lineStart = i;
if (quoteStart == -1) quoteStart = i;