Fixed list continuation

This commit is contained in:
M66B 2021-05-06 09:59:27 +02:00
parent 7a2b116bb6
commit 9278fa2eef
1 changed files with 4 additions and 3 deletions

View File

@ -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;
}
}