oppia-android
oppia-android copied to clipboard
Drag & drop drag state resets after an incorrect answer
Describe the bug When using the drag & drop interaction, an incorrect answer results in the same drag state being shown.
To Reproduce Steps to reproduce the behavior:
- Start the Prototype Exploration on a dev build of the app
- Play through it until the first drag & drop state
- Drag the items to produce an incorrect answer
- Submit the answer
- Observe that the drag & drop order resets back to the original state
Expected behavior The drag & drop order should stay the same after the incorrect answer.
Screenshot
Device
- Device: Pixel XL
- SDK: 29
As discussed, since this needs to apply to all interactions we're not blocking M2 on this work item.
This probably also happens during configuration changes.
@aggarwalpulkit596 still working on this?
This was something a bit out of scope with the current implementation of interactions and viewmodels. It won't be possible unless we move to hilt or something better.
I think we're solving this for the other interactions using a singleton that retrieves state from the assembler. See #2514 for specifics. @FareesHussain do you think that approach could work here?
Deassigning you @aggarwalpulkit596 since it seems that you're not actively working on this.
I think we're solving this for the other interactions using a singleton that retrieves state from the assembler. See #2514 for specifics. @FareesHussain do you think that approach could work here?
I'm not sure here, so far my implementation didn't give any desired result. I've completely forgotten my singleton pr. I will try once again using the setState similar to https://github.com/oppia/oppia-android/pull/2557
@FareesHussain let me know if i can be of any help.