Skip to content

Commit

Permalink
Fix error when undoing in card browser
Browse files Browse the repository at this point in the history
  • Loading branch information
dae committed Aug 15, 2022
1 parent b04e174 commit e5a052f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions AnkiDroid/src/main/java/com/ichi2/anki/CardBrowser.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2615,8 +2615,7 @@ open class CardBrowser :
changes.card
) && handler !== this
) {
// executing this only for the refresh side effects; there may be a better way
Undo().runWithHandler(mUndoHandler)
mUndoHandler.actualOnPostExecute(this@CardBrowser, Computation.ok(NextCard.withNoResult(null)))
}
}

Expand Down

0 comments on commit e5a052f

Please sign in to comment.