From 474c8d503eda5133abe739a8c2b2beab8b966b75 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 23 Jun 2020 07:54:11 +0200 Subject: [PATCH] Prevent crash --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 11631e67b5..569b5c2dbd 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -516,7 +516,7 @@ public class FragmentCompose extends FragmentBase { } if (broken) { - StyleSpan[] sspan = ssb.getSpans(start, start, StyleSpan.class); + StyleSpan[] sspan = ssb.getSpans(start + 1, start + 1, StyleSpan.class); for (StyleSpan span : sspan) { int s = ssb.getSpanStart(span); int e = ssb.getSpanEnd(span);