Allow to choose whether to put cursor to end of note

This commit is contained in:
Nikola Trubitsyn
2017-06-19 01:33:25 +03:00
parent dbdfc7b49f
commit cad1cee0a2
17 changed files with 53 additions and 1 deletions

View File

@ -111,7 +111,10 @@ class NoteFragment : Fragment() {
setColors(config.textColor, config.primaryColor, config.backgroundColor)
setTextSize(TypedValue.COMPLEX_UNIT_PX, context.getTextSize())
gravity = getTextGravity()
setSelection(text.length)
if (config.placeCursorToEnd) {
setSelection(text.length)
}
}
}