-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch the auto advance feature to use the settings in the deck options #15224
Switch the auto advance feature to use the settings in the deck options #15224
Conversation
Message to maintainers, this PR contains strings changes.
Read more about updating strings on the wiki, |
@@ -132,7 +132,7 @@ | |||
<string name="notification_minimum_cards_due_blink" maxLength="41">Blink light</string> | |||
<string name="timeout_answer_text" maxLength="41">Automatic display answer</string> | |||
<string name="timeout_answer" maxLength="41">Timeout answer</string> | |||
<string name="timeout_answer_summ">Show answer automatically without user input. Delay includes time for automatically played audio files.</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to add a new string so that translators get notified? That's the case for Pontoon. Not sure about Crowdin.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, this only changes the english translation. Change the string key to trigger translations everywhere
I'm getting random errors like this while running unit tests locally using
UPDATE: fixed by running |
Making it consistent with the other clients might be better in the long term, but that's perhaps better done in a future PR, as it will require some work to shift from the current automatic always-on approach to an action that toggles it on/off. Edit: sorry, looks like I replied to a deleted comment. |
If this were about my comment, I asked if it wouldn't be better to remove the global option to keep it consistent with the desktop version. But I came to the same conclusion of Damien and deleted my comment minutes later |
45806c3
to
be0ae50
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks a lot
* @see AutomaticAnswerAction | ||
*/ | ||
const val CONFIG_KEY = "automaticAnswerAction" | ||
const val CONFIG_KEY = "answerAction" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit/non-blocking: better to inline this in he callers using with the constant from libAnki
@abdnh happy with a
squash-merge
Blocked on Strings |
Let's go with a squash merge. |
Strings merged. Pending squash @david-allison |
Perfect, thanks all! |
Hi there @abdnh! This is the OpenCollective Notice for PRs merged from 2024-01-01 through 2024-01-31 If you are interested in compensation for this work, the process with details is here: We only post one comment per person per month to avoid spamming you, regardless of the number of PRs merged, but this note applies to all PRs merged for this month Please understand that our monthly budget is never guaranteed to cover all claims - the cap on payments-per-person may be lower, but we try to make our process as fair and transparent as possible, we just need your understanding. Thanks! |
Purpose / Description
This switches the auto advance feature to use the shared settings in the deck options.
Fixes
Approach
secondsToShowQuestion
andsecondsToShowAnswer
deck config properties. AnkiDroid-specific preference/config values are no longer used, except for thetimeoutAnswer
preference used to toggle the feature (The computer version requires the user to explicitly toggle it on in every review session - see Add auto-advance options to deck preset ankitects/anki#2765 (review)).Before
After
How Has This Been Tested?
Manual testing in the emulator.
Learning (optional, can help others)
Refer to ankitects/anki#2765
Checklist
Please, go through these checks before submitting the PR.
Issues