Browse Source

Fixed cursor position after styling

Refs #49
main
M66B 6 years ago
parent
commit
db1c3b1f8a
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/src/main/java/eu/faircode/email/FragmentCompose.java

+ 1
- 0
app/src/main/java/eu/faircode/email/FragmentCompose.java View File

@ -252,6 +252,7 @@ public class FragmentCompose extends FragmentEx {
s.setSpan(new StyleSpan(v.getId() == ibBold.getId() ? Typeface.BOLD : Typeface.ITALIC),
start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
etBody.setText(s);
etBody.setSelection(end);
}
}
};


Loading…
Cancel
Save