Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #5592 : Enable submit button after linking items in Drag & Drop S…
…ort Interaction (#5597) ## Explanation Fixes #5592 , where the submit button did not become enabled after linking items in the Drag & Drop Sort Interaction. Previously, even when the items were correctly linked, the submit button remained disabled, preventing users from proceeding. ### **Changes Made** - Updated logic to track linking and unlinking of items as a meaningful "state change." - Ensured that the submit button becomes enabled as soon as items are linked or unlinked. - Refactored the relevant functions to make sure the submit button reflects changes in real-time. This change improves the overall UX, making it more intuitive for users to submit their answers after linking items. --- ## Essential Checklist - [x] The PR title and explanation each start with "Fix #bugnum: " (If this PR fixes part of an issue, prefix the title with "Fix #5592 ".) - [x] Any changes to [scripts/assets](https://github.com/oppia/oppia-android/tree/develop/scripts/assets) files have their rationale included in the PR explanation. - [x] The PR follows the [style guide](https://github.com/oppia/oppia-android/wiki/Coding-style-guide). - [x] The PR does not contain any unnecessary code changes from Android Studio ([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#undo-unnecessary-changes)). - [x] The PR is made from a branch that's **not** called "develop" and is up-to-date with "develop". - [x] The PR is **assigned** to the appropriate reviewers ([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#clarification-regarding-assignees-and-reviewers-section)). --- After Changes Video : https://github.com/user-attachments/assets/b6e3830c-e01c-4e70-933d-8d24cfee2a41 Screenshot of Passing Tests : ![Screenshot 2024-12-13 232845](https://github.com/user-attachments/assets/1ebdcf82-03ce-4984-a799-d99c2f17f5af) --------- Co-authored-by: Adhiambo Peres <[email protected]>
- Loading branch information