We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96265d4 commit 09b96a4Copy full SHA for 09b96a4
app/src/main/kotlin/com/simplemobiletools/notes/fragments/NoteFragment.kt
@@ -111,10 +111,7 @@ class NoteFragment : Fragment() {
111
setColors(config.textColor, config.primaryColor, config.backgroundColor)
112
setTextSize(TypedValue.COMPLEX_UNIT_PX, context.getTextSize())
113
gravity = getTextGravity()
114
-
115
- if (config.placeCursorToEnd) {
116
- setSelection(text.length)
117
- }
+ setSelection(if (config.placeCursorToEnd) text.length else 0)
118
}
119
120
0 commit comments