-
Notifications
You must be signed in to change notification settings - Fork 527
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 #5039 Terms of Service and Privacy Policy content should still be left-aligned, even if the app is in an RTL language. #5181
Fix #5039 Terms of Service and Privacy Policy content should still be left-aligned, even if the app is in an RTL language. #5181
Conversation
Hey @ShubhadeepKarmakar , if this is ready for a review please assign it to me. Otherwise, please assign it to yourself. YOu can run this command to fix your lint failures from terminal |
@ShubhadeepKarmakar is this ready to be reviewed? |
Yeah. |
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.
Thanks @ShubhadeepKarmakar!
I was not able to understand the explanation you gave on the PR description, in relation to the problem and the solution. Could you please edit it and clarify?
Overall, I'm unsure of the approach, so I've brought it up with the team. I'll be able to review this further once that's resolved.
Meanwhile, please feel free to work on something else.
app/src/main/java/org/oppia/android/app/policies/PoliciesFragmentPresenter.kt
Show resolved
Hide resolved
app/src/main/java/org/oppia/android/app/policies/PoliciesFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
Unassigning @adhiamboperes since the review is done. |
Hi @ShubhadeepKarmakar, it looks like some changes were requested on this pull request by @adhiamboperes. PTAL. Thanks! |
Hi @ShubhadeepKarmakar, Could you PTAL at this feedback? |
Hi @ShubhadeepKarmakar, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue. |
@ShubhadeepKarmakar, are you still working on this PR? |
…kar/oppia-android into Terms_of_Service # the commit.
Hi @ShubhadeepKarmakar, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue. |
Explanation
Under the ListItemLeadingMarginSpan class we have the ulSpan class and the olSpan class which takes displayLocal as an input and then retrieves the direction of the layout using the getLayoutDirection() method to get the bullet drawing position.
That's why I created an object of the DisplayLocaleImp class and overridden the getLayoutDirection() method to pretend it's LTR.
Essential Checklist
For UI-specific PRs only
If your PR includes UI-related changes, then:
Before:
rtl-problem.mp4
After:
rtl.mp4
Tablet view
Tablet View in landscape