0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 12:02:16 +02:00

Fix time taken in v3 scheduler being capped to maximum

Closes #12024
This commit is contained in:
Damien Elmes 2022-08-17 05:44:13 +10:00 committed by Mike Hardy
parent 5ad4ffc802
commit f827d5528b

View File

@ -51,7 +51,9 @@ class SchedV3(col: CollectionV16) : AbstractSched(col) {
// could be made more efficient by constructing a native Card object from
// the backend card object, instead of doing a separate fetch
override val card: Card?
get() = queuedCards.cardsList.firstOrNull()?.card?.id?.let { col.getCard(it) }
get() = queuedCards.cardsList.firstOrNull()?.card?.id?.let {
col.getCard(it).apply { startTimer() }
}
private val queuedCards: QueuedCards
get() = col.backend.getQueuedCards(fetchLimit = 1, intradayLearningOnly = false)