Skip to content

Commit

Permalink
fixed a crash when viewing the language list while a dictionary is lo…
Browse files Browse the repository at this point in the history
…ading
  • Loading branch information
sspanak committed Aug 20, 2024
1 parent 12a1626 commit 008880a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:tools="http://schemas.android.com/tools"
android:versionCode="641"
android:versionCode="643"
android:versionName="37.0"
xmlns:android="http://schemas.android.com/apk/res/android">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import java.util.ArrayList;

import io.github.sspanak.tt9.R;
import io.github.sspanak.tt9.db.DictionaryLoader;
import io.github.sspanak.tt9.db.WordStoreAsync;
import io.github.sspanak.tt9.languages.Language;
import io.github.sspanak.tt9.languages.LanguageCollection;
Expand Down Expand Up @@ -47,7 +48,9 @@ private void createLanguageList() {
}

addLanguagesToCategory(languagesCategory, allLanguages);
WordStoreAsync.exists(this::addLoadedStatus, allLanguages);
if (!DictionaryLoader.getInstance(activity).isRunning()) {
WordStoreAsync.exists(this::addLoadedStatus, allLanguages);
}
}


Expand Down

0 comments on commit 008880a

Please sign in to comment.