From c832e1d9cb9d2653f15c21b558457d5b346244a7 Mon Sep 17 00:00:00 2001 From: David Allison <62114487+david-allison-1@users.noreply.github.com> Date: Mon, 6 Apr 2020 16:27:39 +0100 Subject: [PATCH] Speed up getCol() --- AnkiDroid/src/main/java/com/ichi2/anki/CollectionHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/CollectionHelper.java b/AnkiDroid/src/main/java/com/ichi2/anki/CollectionHelper.java index fc0484c7a65e..b84bab72746a 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/CollectionHelper.java +++ b/AnkiDroid/src/main/java/com/ichi2/anki/CollectionHelper.java @@ -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));