-
Notifications
You must be signed in to change notification settings - Fork 499
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 #4343: Fixes Explorations hints being numbered randomly #4630
Fix #4343: Fixes Explorations hints being numbered randomly #4630
Conversation
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 @Ryggs. I think the approach is sound, we mainly just need tests to wrap this up (though I had a few other thoughts as well).
app/src/main/java/org/oppia/android/app/translation/AppLanguageResourceHandler.kt
Show resolved
Hide resolved
app/src/main/java/org/oppia/android/app/translation/AppLanguageResourceHandler.kt
Outdated
Show resolved
Hide resolved
.../main/java/org/oppia/android/app/hintsandsolution/HintsAndSolutionDialogFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
.../main/java/org/oppia/android/app/hintsandsolution/HintsAndSolutionDialogFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
.../main/java/org/oppia/android/app/hintsandsolution/HintsAndSolutionDialogFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
.../main/java/org/oppia/android/app/hintsandsolution/HintsAndSolutionDialogFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
…String including removing the .toString() method, compute index property inline, add three tests
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 @Ryggs! Should this PR be moved to be fully in review, now? It seems like it's actually rather close to code completion.
Some PR-level comments:
- Please add before & after screenshots in addition to your videos (these are a bit easier to quickly consume for readers of the PR).
- Please fix the failing CI checks.
- Please update the PR description to specifically call out the issue being fixed (see my merged PRs for a reference).
- Please update the PR title to include correct formatting & spacing (see my merged PRs for a reference).
app/src/test/java/org/oppia/android/app/player/state/StateFragmentLocalTest.kt
Show resolved
Hide resolved
app/src/test/java/org/oppia/android/app/translation/AppLanguageResourceHandlerTest.kt
Outdated
Show resolved
Hide resolved
app/src/test/java/org/oppia/android/app/translation/AppLanguageResourceHandlerTest.kt
Outdated
Show resolved
Hide resolved
utility/src/test/java/org/oppia/android/util/locale/DisplayLocaleImplTest.kt
Outdated
Show resolved
Hide resolved
Sure, working on this ASAP |
…on, test for values larger than 10,000
…omly' into explorations-hints-numbered-randomly
…displayLoacleImpl
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 @Ryggs. Just had a few follow-ups--PTAL.
app/src/test/java/org/oppia/android/app/translation/AppLanguageResourceHandlerTest.kt
Outdated
Show resolved
Hide resolved
app/src/test/java/org/oppia/android/app/player/state/StateFragmentLocalTest.kt
Show resolved
Hide resolved
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 @Ryggs! This LGTM.
Explanation
Fixes #4343
This PR fixes the explorations hints being numbered randomly by using the hint list item index to correctly label the hint title. It does this by calculating the sum of the hint index and 1, and setting the hint title via data binding and the ViewModel.
Essential Checklist
For UI-specific PRs only
If your PR includes UI-related changes, then:
DEMO