-
Notifications
You must be signed in to change notification settings - Fork 532
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
Landscape support for ItemSelectionInteraction [Blocked on #1737] #1595
Comments
@rt4914 I want to work on this issue. |
@prayutsu This can be a tricky task but considering that you have finished almost 3 PRs, I am assigning this to you. If you get stuck feel free to mention and we will deassign you. |
@rt4914 If we could wrap the options selected in a LiveData object. Then the checkboxes will survive configuration change. I explored the directories and packages. But I need a little help in identifying the correct files (like SelectionInteractionViewModel, SelectionInteractionContentViewModel, QuestionPlayerViewModel, etc) where I should try making changes. It would be a pleasure if you could do some help |
@prayutsu things won't work with live data because they cannot retain values on configuration change. |
And you have to make changed ItemSelectionInteractionView |
Thank you @aggarwalpulkit596 for your help. |
@aggarwalpulkit596 src/main/java/org/oppia/app/player/state/itemviewmodel/SelectionInteractionViewModel.kt Is this what you are referring to? |
Yes that's correct |
Thank you for that @aggarwalpulkit596
I also tried another command which is there on their official website - But nothing happens, there's not any logs in the terminal and the command isn't executed completely. |
@vinitamurthi or @anandwana001 is this something that you can help with? |
As per the wiki mentioned, we are currently using 0.37.0 version of the ktlint. Please check with this version and let me know if the same issue occurs. |
@aggarwalpulkit596 I am trying to solve this issue by using savedStateHandle in |
@anandwana001 Even after trying version 0.37.0, still the same thing is happening. |
Just to confirm before I look into what's the issue, apart from ktlint does curl commands working on your machine? |
yes, they work |
ok let me see, The common issue always is this command sets up the file which requires stable and strong internet connection. |
@anandwana001 Please take a look on this |
Could you try this one - https://snapcraft.io/install/ktlint/ubuntu |
|
@anandwana001 @aggarwalpulkit596 @prayutsu Please avoid having conversations on issues, instead you can chat in gitter channel or on email. |
@rt4914 I am removing my assignment for this issue, so can you please assign me new issues? |
Duplicate #4472 |
Describe the bug
If learner has selected few options in
ItemSelectionInteraction
and does configuration change the selection disappears.To Reproduce
Steps to reproduce the behavior:
Go to
Prototype Exploration
Go to below mentioned state:
Select 2-3 options
Change device configuration
Notice that the selection resets.
Expected behavior
ItemSelectionInteraction
should persist selected items on configuration change. Fix this for question and exploration player.The text was updated successfully, but these errors were encountered: