Fixed cursor position after styling

Refs #49
pull/125/head
M66B 6 years ago
parent b97da5d660
commit db1c3b1f8a

@ -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