Improve the review forgotten cards dialog#20620
Improve the review forgotten cards dialog#20620nourhanbakry wants to merge 5 commits intoankidroid:mainfrom
Conversation
|
Important Maintainers: This PR contains Strings changes
|
|
Hello @nourhanbakry |
Thanks for your comment, I fixed it |
| val newText = dest?.replaceRange(dstart, dend, source?.subSequence(start, end) ?: "") | ||
|
|
||
| return if (newText != null && newText.length > 1 && newText.startsWith("0")) { | ||
| "" |
There was a problem hiding this comment.
Same issue here as well : see this comment #20618 (comment)
| binding.detailsEditText2Layout.error = null | ||
| dialog.positiveButton.isEnabled = true | ||
| } else { | ||
| binding.detailsEditText2Layout.error = getString(R.string.no_cards_matched_criteria) |
There was a problem hiding this comment.
You can use TR.customStudyNoCardsMatchedTheCriteriaYou instead of the string resource here to avoid duplication
There was a problem hiding this comment.
This is taking on too much, please fix the commit structure via rebase + force push so individual changes are reviewable as separate commits or split out maybe 2 smaller PRs so they're reviewable
This feels AI-genned, could I confirm it's not? The use of bare strings, where your previews PRs contained R.string seemed unusual
https://github.com/ankidroid/Anki-Android/blob/main/AI_POLICY.md
Purpose / Description
Improve the "Review forgotten cards" dialog.
The current dialog has multiple UX issues:
This creates confusion and breaks consistency with other dialogs.
Fixes
Approach
The dialog UI and behavior were updated to match the expected UX:
getQuantityStringValidation improvements:
InputFilterDynamic validation:
hasMatchingCardsThis ensures immediate feedback without interrupting the user flow.
How Has This Been Tested?
Tested manually with the following setup:
playDebugScreen.Recording.2026-03-29.at.2.30.25.AM.mov
Checklist
Please, go through these checks before submitting the PR.