-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting to control document open cursor pos (top/bottom), seperate la… #1113
Setting to control document open cursor pos (top/bottom), seperate la… #1113
Conversation
FrantisekRadacovsky
commented
Nov 3, 2020
- Fixed bug, when setting cursor on the bottom doesn't work.
- Issue "Setting to control document open cursor pos (top/bottom), seperate last pos option Setting to control document open cursor pos (top/bottom), seperate last pos option #1004" -> done.
…st pos option gsantner#1004 Fixed bug, when setting cursor on the bottom doesn't work + Issue "Setting to control document open cursor pos (top/bottom), seperate last pos option gsantner#1004" done.
formatted code
Hello thanks This is still work in progress right? I found some debug code and commented code. |
if (!as.isPreviewFirst()) { | ||
_hlEditor.requestFocus(); | ||
if (as.getCursorPosition() != null) { | ||
if (as.getCursorPosition().equals("End of document")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will break when translations are applied. You should do something like
final Resources res = activity.getResources();
if (as.getCursorPosition().equals(res.getString(R.string.cursor_end)) {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be even better, imo, to separate the string description from the key
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes that one was meant especially with "work in progress" :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah sorry, I am so used to looking for WIP:
that I did not see the draft tag :)
Hi. I'll look into it as soon as possible. Sorry for the inconvenience. |
thanks no problem, just let me know when you have something to look at. |
closing for now, can always be reopened again when it is ready. |