From 9278fa2eefbf49e75b8501488d44de350c7317d7 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 6 May 2021 09:59:27 +0200 Subject: [PATCH] Fixed list continuation --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 24534fefc2..67ee963421 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -573,9 +573,10 @@ public class FragmentCompose extends FragmentBase { if (activity != null) activity.onUserInteraction(); - if (before == 0 && count == 1 && start > 0 && text.charAt(start) == '\n') { - Log.i("Added=" + start); - added = start; + int index = start + before; + if (count - before == 1 && index > 0 && text.charAt(index) == '\n') { + Log.i("Added=" + index); + added = index; } }