1
0
Fork 0

fixed dictionary loading time wrongly displayed as -0.0s, when loading more than one language at a time

This commit is contained in:
sspanak 2024-06-18 17:30:04 +03:00 committed by Dimo Karaivanov
parent 2b01f8528a
commit 1ccfc76dfa

View file

@ -94,6 +94,8 @@ public class DictionaryLoader {
importAll(context, lang); importAll(context, lang);
currentFile++; currentFile++;
} }
Timer.stop(IMPORT_TIMER);
} }
}; };
@ -200,7 +202,6 @@ public class DictionaryLoader {
sqlite.finishTransaction(); sqlite.finishTransaction();
SlowQueryStats.clear(); SlowQueryStats.clear();
Timer.stop(IMPORT_TIMER);
} catch (DictionaryImportAbortedException e) { } catch (DictionaryImportAbortedException e) {
sqlite.failTransaction(); sqlite.failTransaction();
stop(); stop();