Improve post-assignment dialog for Answer actions in Controls
Originally posted by @ZornHadNoChoice in #20504:
Not sure if this counts as a bug, but I noticed in https://github.com/ankidroid/Anki-Android/pull/20701 that the dialog which asks the user if they want the gesture to be "Only answer" or "Flip and answer" does nothing when the gesture is already assigned to "Show answer". Possible solutions:
- The gesture is removed from "Show answer" if the user selects "Only answer".
- The dialog isn't shown at all in this case.
- Change the wording of the dialog to something like "Also assign to Show answer?" and have "Yes"/"No" buttons.
Current dialog, for reference:
Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically
@manocormen I think option 3 is appropriate. my approach: change the dialog text to: Also assign this gesture to "Show answer"? , with Yes/No buttons. Additionally, when the selected gesture is already assigned to Show answer, show a conditional warning noting that choosing "No" will remove it there. This gives the user full awareness.
Thanks, @Sanjeev-Narang. You're assigned. I remember also thinking that the third options would be fitting. Since you're new here, before getting started, please have a look at our AI policy for new contributors. Cheers
@manocormen Got it, thanks for assigning this to me. I'll get right on it
@manocormen could you take a look and tell me if this looks good?
Case 1: When input binding is already assigned to Show answer:
Case 2: when input binding is not assigned to Show answer:
@Sanjeev-Narang I'd suggest keeping it simple, sticking to Zorn's idea/wording:
Also assign to 'Show answer'? Yes / No
If the gesture was already assigned to Show answer:
- Yes does nothing.
- No unassigns it.