Skip to content

Commit

Permalink
make sure the cursor is visible at starting the app
Browse files Browse the repository at this point in the history
  • Loading branch information
tibbi committed Jun 22, 2017
1 parent 96265d4 commit 09b96a4
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 09b96a4

Please sign in to comment.