Fixed cursor position after styling

Refs #49
This commit is contained in:
M66B 2018-09-07 19:38:00 +00:00
parent b97da5d660
commit db1c3b1f8a
1 changed files with 1 additions and 0 deletions

View File

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