make sure the cursor is visible at starting the app

This commit is contained in:
tibbi 2017-06-22 21:05:51 +02:00
parent 96265d4a79
commit 09b96a45e8

View File

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