feat: toggleable incrementer for "Learn ahead limit" and "Timebox time limit"#21336
feat: toggleable incrementer for "Learn ahead limit" and "Timebox time limit"#21336Yousuf24100286 wants to merge 4 commits into
Conversation
|
First PR! 🚀 We sincerely appreciate that you have taken the time to propose a change to AnkiDroid! Please have patience with us as we are all volunteers - we will get to this as soon as possible. |
|
Important Maintainers: This PR contains Strings changes
|
|
Sorry, but, umm... you made the same mistake as the previous assignee despite there being clear instructions on how it should look like. |
@ZornHadNoChoice pls review. is this how I was supposed to do it ? |
|
Snapshot diff report vs
All 1 changed screenshotsPreferencesScreenshotTest
|
|
Almost. There should be a vertical bar like in the "Sync URL" toggle. |
@ZornHadNoChoice pls review. |
|
It looks good, but I have no idea about the functionality or the code. I'm not a dev. |
There was a problem hiding this comment.
This was removed in later commit. Could you delete from here too to maintain a clean git history
| <string name="use_current" maxLength="41">Deck for new cards</string> | ||
| <string name="learn_cutoff" maxLength="41">Learn ahead limit</string> | ||
| <string name="time_limit" maxLength="41">Timebox time limit</string> | ||
| <string name="toggle_enable_limit">Enable limit</string> |




Purpose / Description
The "Learn ahead limit" and "Timebox time limit" required user to manually enter 0 to disable the feature.
Now added a toggle switch to enable/disable the limit.
Fixes
Approach
ToggleableIncrementerNumberRangePreferenceCompatNumberRangePreferenceCompatHow Has This Been Tested?
assemblePlayDebugbuilds successfully,lintPlayDebugpassesScreenshots
Checklist
Please, go through these checks before submitting the PR.