mirror of
https://github.com/FossifyOrg/Notes.git
synced 2026-01-06 06:27:53 -05:00
fix #112, keep cursor position at Resume
This commit is contained in:
@@ -106,11 +106,13 @@ class NoteFragment : Fragment() {
|
||||
return
|
||||
}
|
||||
|
||||
setText(fileContents)
|
||||
setColors(config.textColor, config.primaryColor, config.backgroundColor)
|
||||
setTextSize(TypedValue.COMPLEX_UNIT_PX, context.getTextSize())
|
||||
gravity = getTextGravity()
|
||||
setSelection(if (config.placeCursorToEnd) text.length else 0)
|
||||
if (text.toString() != fileContents) {
|
||||
setText(fileContents)
|
||||
setSelection(if (config.placeCursorToEnd) text.length else 0)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user