diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/ui/windows/reviewer/ReviewerViewModel.kt b/AnkiDroid/src/main/java/com/ichi2/anki/ui/windows/reviewer/ReviewerViewModel.kt index 4a7372ead5c8..025a6656c938 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/ui/windows/reviewer/ReviewerViewModel.kt +++ b/AnkiDroid/src/main/java/com/ichi2/anki/ui/windows/reviewer/ReviewerViewModel.kt @@ -41,10 +41,10 @@ class ReviewerViewModel(cardMediaPlayer: CardMediaPlayer) : PostRequestHandler { private var queueState: Deferred = asyncIO { - withCol { sched.currentQueueState() } + // this assumes that the Reviewer won't be launched if there isn't a queueState + withCol { sched.currentQueueState() }!! } override var currentCard = asyncIO { - // this assumes that the Reviewer won't be launched if there isn't a queueState queueState.await()!!.topCard } var isQueueFinishedFlow = MutableSharedFlow()