Skip to content

Commit

Permalink
chore(libanki): setCurrent()
Browse files Browse the repository at this point in the history
  • Loading branch information
BrayanDSO committed May 2, 2024
1 parent 075ec22 commit 408e18b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions AnkiDroid/src/main/java/com/ichi2/libanki/Decks.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

package com.ichi2.libanki

import androidx.annotation.CheckResult
import anki.collection.OpChanges
import anki.collection.OpChangesWithCount
import anki.collection.OpChangesWithId
Expand Down Expand Up @@ -418,11 +419,10 @@ class Decks(private val col: Collection) {
*************************************************************
*/

@RustCleanup("implement and make public")
@CheckResult
@LibAnkiAlias("set_current")
@Suppress("unused", "unused_parameter")
private fun setCurrent(deck: DeckId): OpChanges {
TODO()
fun setCurrent(deck: DeckId): OpChanges {
return col.backend.setCurrentDeck(deck)
}

/** @return The currently selected deck ID. */
Expand Down

0 comments on commit 408e18b

Please sign in to comment.