Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

Improve post-assignment dialog for Answer actions in Controls

Open manocormen opened this issue 7 months ago • 6 comments

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:

  1. The gesture is removed from "Show answer" if the user selects "Only answer".
  2. The dialog isn't shown at all in this case.
  3. Change the wording of the dialog to something like "Also assign to Show answer?" and have "Yes"/"No" buttons.

Current dialog, for reference:

Image

manocormen avatar Apr 17 '26 07:04 manocormen

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

github-actions[bot] avatar Aug 12 '26 00:08 github-actions[bot]

@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.

Sanjeev-Narang avatar Aug 12 '26 20:08 Sanjeev-Narang

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 avatar Aug 13 '26 14:08 manocormen

@manocormen Got it, thanks for assigning this to me. I'll get right on it

Sanjeev-Narang avatar Aug 13 '26 16:08 Sanjeev-Narang

@manocormen could you take a look and tell me if this looks good?

Case 1: When input binding is already assigned to Show answer:

Image

Case 2: when input binding is not assigned to Show answer:

Image

Sanjeev-Narang avatar Aug 18 '26 19:08 Sanjeev-Narang

@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.

manocormen avatar Aug 19 '26 12:08 manocormen