mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-15 07:52:02 +02:00
make sure the cursor is visible at starting the app
This commit is contained in:
parent
96265d4a79
commit
09b96a45e8
@ -111,10 +111,7 @@ class NoteFragment : Fragment() {
|
|||||||
setColors(config.textColor, config.primaryColor, config.backgroundColor)
|
setColors(config.textColor, config.primaryColor, config.backgroundColor)
|
||||||
setTextSize(TypedValue.COMPLEX_UNIT_PX, context.getTextSize())
|
setTextSize(TypedValue.COMPLEX_UNIT_PX, context.getTextSize())
|
||||||
gravity = getTextGravity()
|
gravity = getTextGravity()
|
||||||
|
setSelection(if (config.placeCursorToEnd) text.length else 0)
|
||||||
if (config.placeCursorToEnd) {
|
|
||||||
setSelection(text.length)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user