Skip to content

Commit

Permalink
Ensure card timer started
Browse files Browse the repository at this point in the history
I mistakenly assumed answerTimer.setupForCard(currentCard!!)
was already doing this

Closes ankidroid#14586
  • Loading branch information
dae authored and BrayanDSO committed Oct 25, 2023
1 parent ffff416 commit 91151de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ open class Scheduler(val col: Collection) {
val queue = queuedCards
return queue.cardsList.firstOrNull()?.let {
CurrentQueueState(
topCard = Card(col, it.card),
topCard = Card(col, it.card).apply { startTimer() },
countsIndex = when (it.queue) {
QueuedCards.Queue.NEW -> Counts.Queue.NEW
QueuedCards.Queue.LEARNING -> Counts.Queue.LRN
Expand Down

0 comments on commit 91151de

Please sign in to comment.