-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Fix toolbar keys order in RTL layout #574
Conversation
Fix the toolbar keys direction so that it does not change when switching between an RTL/LTR layouts
Commit 1eac01e has a reference to PR number 2, but it is unrelated to it. |
That's normal in git, and usually they should not be edited. I see you didn't remove Did you test the arrow keys in the toolbar, and when pinned? Just to be sure they point in the correct direction.
I'm ok with merging this without toggle, but would you be willing to try adding one later, in case someone complains about this change? |
app/src/main/java/helium314/keyboard/latin/suggestions/SuggestionStripView.java
Outdated
Show resolved
Hide resolved
That's neat, I did not know you could combine those together. Thanks for the reassurance :)
So I actually learned how to add a toggle myself, it was not really complicated. I added the toggle to the Preferences screen.
Arrow keys/pinned toolbar buttons point in the same direction as before if the toggle is off.
In the 845e6f9 commit I've moved some of the code of the setLayoutDirection method to setRtl, because the former belongs to a static class and the mRtl variable (which has been restored) could not be referenced from it. So setRtl is still needed I think. |
Thanks, this is fine now. My only issue is with the name and description of the setting. The name is ambiguous, and it's completely unclear that the setting is about ltr / rtl languages. |
Maybe something like "toolbar direction language direction" (though I'm not really happy with that one as well). |
what about "toolbar direction"? description: Enable it for RTL direction layout, If disabled, the direction of the active layout will be used (LTR). |
I would like to avoid RTL / LTR shortcuts as it would be confusing to many people. How about reversing the setting and use Variable toolbar direction, with some description like Reverse toolbar (or toolbar direction?) for right-to-left scripts (languages?) |
Thank you both for your input. |
Fix the toolbar keys direction so that it does not change when switching between an RTL/LTR layouts.
The issue was described here: #557
Upon testing the app in Android Studio, the order seems to be fixed with no adverse effect on the direction of the text in the auto-complete (RTL layout) suggestions.