Skip to content

Commit

Permalink
Speed up getCol()
Browse files Browse the repository at this point in the history
  • Loading branch information
david-allison authored and mikehardy committed Apr 6, 2020
1 parent 0ba4a1b commit c832e1d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ public static CollectionHelper getInstance() {
*/
public synchronized Collection getCol(Context context) {
// Open collection
String path = getCollectionPath(context);
if (!colIsOpen()) {
String path = getCollectionPath(context);
// Check that the directory has been created and initialized
try {
initializeAnkiDroidDirectory(getParentDirectory(path));
Expand Down

0 comments on commit c832e1d

Please sign in to comment.