Skip to content

Commit

Permalink
NF: refactor syncFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur-Milchior authored and lukstbit committed Oct 13, 2022
1 parent 7462666 commit bd818a0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions AnkiDroid/src/main/java/com/ichi2/anki/DeckPicker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1556,11 +1556,6 @@ open class DeckPicker :
return false
}

// Sync with Anki Web
override fun sync() {
sync(null)
}

/**
* The mother of all syncing attempts. This might be called from sync() as first attempt to sync a collection OR
* from the mSyncConflictResolutionListener if the first attempt determines that a full-sync is required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ class SyncErrorDialog : AsyncDialogFragment() {
fun showSyncErrorDialog(dialogType: Int)
fun showSyncErrorDialog(dialogType: Int, message: String?)
fun loginToSyncServer()
fun sync()
fun sync(conflict: ConflictResolution?)
fun sync(conflict: ConflictResolution? = null)
fun mediaCheck()
fun dismissAllDialogFragments()
fun integrityCheck()
Expand Down

0 comments on commit bd818a0

Please sign in to comment.