Open david-allison opened 8 months ago
I see 3 possibilities:
Reviewer
: onResume
Reviewer
: not handling a studyQueues
change correctlyHi again David!
Since the previous solution was mentioned as a hack, I had another suggestion – still a hack, but one that ought to be simpler and not required to run all the time.
[The following part of this message was moved from link]
Quote from previous location:
⚠️ This is a hack, please suggest a better method, happy to rewrite
Thank you, David, for trying to deal with this issue! I do however have another suggestion: Could you add an error handler that just suppresses / ignores this exact error instead, on this place in the code? I guess it would mean one question, at the most, not rated every 24 hours, right? Personally I'd prefer that to code running every second.
"> withCol { sched.dayCutoff } takes 0-5ms on a background thread, I'm not worried about a hit to battery life from this"
Yes, I read you are not worried about the hit to battery life, but if many app programmers argue the same way, running 5 ms code every second, there will eventually be a hit on performance and battery life. That is why I would prefer losing one rated card every day, or getting the same card again (if that is what will happen). I don't mind much getting a question just one extra time a day.
Thanks, Andreas Jansson
Could you add an error handler that just suppresses / ignores this exact error instead, on this place in the code? I guess it would mean one question, at the most, not rated every 24 hours, right? Personally I'd prefer that to code running every second.
We should diagnose and fix the bug. The code runs every minute.
Yes, I read you are not worried about the hit to battery life, but if many app programmers argue the same way, running 5 ms code every second, there will eventually be a hit on performance and battery life.
If there are alternative APIs which we can use, I'm open to it. We should first be correct. Users shouldn't miss a card
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
I installed AnkiDroid 2.17.5 and I still get this "card modified" error when leaving a card open overnight (unrated) and rate it in the morning.
Originally posted by @andreas1974 in https://github.com/ankidroid/Anki-Android/issues/12946#issuecomment-1996770201