Skip to content

Commit 09b96a4

Browse files
committed
make sure the cursor is visible at starting the app
1 parent 96265d4 commit 09b96a4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/fragments/NoteFragment.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,7 @@ class NoteFragment : Fragment() {
111111
setColors(config.textColor, config.primaryColor, config.backgroundColor)
112112
setTextSize(TypedValue.COMPLEX_UNIT_PX, context.getTextSize())
113113
gravity = getTextGravity()
114-
115-
if (config.placeCursorToEnd) {
116-
setSelection(text.length)
117-
}
114+
setSelection(if (config.placeCursorToEnd) text.length else 0)
118115
}
119116
}
120117

0 commit comments

Comments
 (0)