-
Notifications
You must be signed in to change notification settings - Fork 528
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
[BUG]: The story/topic completion text does not update after the app language is changed. #5024
Comments
I think this also affects dialogs from what I've seen back when implementing the internationalization work. I think the issue splits into two different problem areas:
Dialogs have a separate context from the activity that they're hosted in, so I'm not quite sure how we ensure that they receive the correctly initialized context upon a recreation. Perhaps we need some custom work in an InjectableDialogFragment base class? The navigation drawer one is a bit more confusing to me because it should just be using the same context as the host activity (which would be recreated upon a language change) when selecting language. Resource selection is quite complicated in Android, however, so it's possible a different resources object is being used for these strings in particular (maybe the application context's resources?). |
Hi @adhiamboperes, I am unable to reproduce this BUG because the App Language Option Leads to an empty activity. |
This is due to #5106. If you're unable to run bazel, could you try to repro a different issue? |
Sure @adhiamboperes. |
@whyash8, could you PTAL at this issue? |
Ok I will take a look. |
please assign me this issue |
@whyash8, please move this to discussions as it is not related to this issue. |
Hi @adhiamboperes, Can you please provide guidance or suggestions on how to start solving this issue? Specifically, any pointers on which files or parts of the codebase I should focus on would be greatly appreciated. I have already setup the appVersion needed for this issue . Thank you! |
@whyash8,
These are options you can eliminate and can guide you to understand why the update is failing. |
Hi @adhiamboperes , I am currently working on issue #5024 and noticed a difference between the release-0.11 and develop branches in the NavigationDrawerHeaderViewModel.kt file. Specifically, the release-0.11 branch has a single variable profileProgressText, while the develop branch has separated this into two variables: profileTopicProgressText and profileStoryProgressText. I believe that aligning the release-0.11 implementation with the develop branch by introducing these two separate variables could potentially resolve the issue and improve the clarity and accuracy of the progress texts. Before proceeding, I wanted to get your input on whether this would be the best approach or if there are any other considerations I should be aware of. Thanks for your guidance! |
@whyash8, could you please confirm that you are suggesting reverting to a single variable? Was this bug not present in 0.11? |
@adhiamboperes |
@whyash8, if the bug is not present in the current version of develop, but it was present in an earlier version, it means that it was fixed. In such situations, we prefer to identify the commit that fixed the issue, and then we can verify that the bug was present before, but not after that commit. In order to do this, we use Once you are able to locate it, we should be able to close this issue. Here’s a link to git bisect documentation: https://git-scm.com/docs/git-bisect |
Hi @whyash8, |
@swarnalicoder please look at a different issue . This is already assigned |
Commit 3c7713d |
Commit 3a369ed which resolved the issue. |
Describe the bug
After selecting a language and navigating back to the options menu, the sidenav still shows the stories/topic completion in the old language.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Demonstration
Environment
The text was updated successfully, but these errors were encountered: