Prevent crash

pull/174/head
M66B 5 years ago
parent ba42c5c68e
commit 6dc5137c06

@ -476,7 +476,7 @@ public class FragmentCompose extends FragmentBase {
if (activity != null) if (activity != null)
activity.onUserInteraction(); 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 // break block quotes
boolean broken = false; boolean broken = false;
SpannableStringBuilder ssb = new SpannableStringBuilder(text); SpannableStringBuilder ssb = new SpannableStringBuilder(text);

Loading…
Cancel
Save