1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-25 15:32:52 +00:00

Prevent crash

This commit is contained in:
M66B 2020-02-14 08:41:57 +01:00
parent ba42c5c68e
commit 6dc5137c06

View file

@ -476,7 +476,7 @@ public class FragmentCompose extends FragmentBase {
if (activity != null)
activity.onUserInteraction();
if (before == 0 && count == 1 && text.charAt(start) == '\n') {
if (before == 0 && count == 1 && start > 0 && text.charAt(start) == '\n') {
// break block quotes
boolean broken = false;
SpannableStringBuilder ssb = new SpannableStringBuilder(text);