mirror of
https://github.com/ankidroid/Anki-Android.git
synced 2024-09-20 12:02:16 +02:00
parent
5ad4ffc802
commit
f827d5528b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user