Skip to content

Commit

Permalink
Fix card not being suspended after first being buried
Browse files Browse the repository at this point in the history
The old code was only suspending cards with QUEUE_TYPE_NEW,
QUEUE_TYPE_LRN, QUEUE_TYPE_REV, QUEUE_TYPE_DAY_LEARN_RELEARN or
QUEUE_TYPE_PREVIEW. The code was changed to suspend cards that weren't
already suspended, otherwise it will unsuspend previously suspended
cards.
  • Loading branch information
lukstbit authored and mikehardy committed Nov 20, 2023
1 parent 64d3c92 commit d98ef09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AnkiDroid/src/main/java/com/ichi2/anki/CardBrowser.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1724,7 +1724,7 @@ open class CardBrowser :
}
withProgress {
undoableOp {
val wantSuspend = getCard(cardIds.first()).queue >= 0
val wantSuspend = getCard(cardIds.first()).queue != Consts.QUEUE_TYPE_SUSPENDED
if (wantSuspend) {
sched.suspendCards(cardIds).changes
} else {
Expand Down

0 comments on commit d98ef09

Please sign in to comment.