0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 12:02:16 +02:00

Remove unrequired colleciton reopen in import-replace

The call does not actually accomplish anything so it is not needed.
For some reason, calling this method was resulting in a corrupt
database the import completed.
This commit is contained in:
Houssam Salem 2016-08-03 16:41:25 +10:00
parent d59cd020c0
commit 4ba650c7dd

View File

@ -821,7 +821,6 @@ public class DeckTask extends BaseAsyncTask<DeckTask.TaskData, DeckTask.TaskData
}
int addedCount = -1;
try {
col.reopen();
CollectionHelper.getInstance().unlockCollection();
// because users don't have a backup of media, it's safer to import new