Skip to content

Commit

Permalink
Fix test failures when running with new schema enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
dae authored and mikehardy committed Jun 29, 2022
1 parent 514b544 commit 76fd011
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion AnkiDroid/src/main/java/com/ichi2/libanki/Storage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ object Storage {
log: Boolean = false,
): Collection {
val backend = BackendFactory.getBackend(context)
return Collection(context, path, server, log, backend)
return if (backend.legacySchema) {
Collection(context, path, server, log, backend)
} else {
CollectionV16(context, path, server, log, backend)
}
}

/**
Expand Down

0 comments on commit 76fd011

Please sign in to comment.