Skip to content

Commit 9ce1101

Browse files
committed
feat: implement the media tagging in Deckpicker
1 parent 66099fb commit 9ce1101

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

AnkiDroid/src/main/java/com/ichi2/anki/DeckPicker.kt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1923,6 +1923,17 @@ open class DeckPicker :
19231923
}
19241924
}
19251925

1926+
override fun tagMissing(missingMediaNotes: List<Long>?) {
1927+
if (missingMediaNotes == null) return
1928+
1929+
Timber.d("DeckPicker:: Adding missing media tag")
1930+
launchCatchingTask {
1931+
withCol {
1932+
tags.bulkAdd(missingMediaNotes, TR.mediaCheckMissingMediaTag())
1933+
}
1934+
}
1935+
}
1936+
19261937
open fun handleDbError() {
19271938
Timber.i("Displaying Database Error")
19281939
showDatabaseErrorDialog(DatabaseErrorDialogType.DIALOG_LOAD_FAILED)

0 commit comments

Comments
 (0)