Bugfix for 6cc06bcb98acc05c7677c642adf8ded90ffc8372.

Millesimus created

Change summary

src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java | 3 
1 file changed, 1 insertion(+), 2 deletions(-)

Detailed changes

src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java 🔗

@@ -381,7 +381,6 @@ public class MessageAdapter extends ArrayAdapter<Message> {
                             // Line start without quote, apply spans there
                             applyQuoteSpan(body, quoteStart, i - 1, darkBackground);
                             quoteStart = -1;
-                            quoteDepth++;
                         }
                     }
                 } else {
@@ -406,8 +405,8 @@ public class MessageAdapter extends ArrayAdapter<Message> {
             if (quoteStart >= 0) {
                 // Apply spans to finishing open quote
                 applyQuoteSpan(body, quoteStart, body.length(), darkBackground);
-                quoteDepth++;
             }
+            quoteDepth++;
         }
         return startsWithQuote;
     }