Skip to content

Commit

Permalink
Fix a bug with finding databases in non-madani (#1053)
Browse files Browse the repository at this point in the history
Because the directory for databases might already exist, the app might
continuously think that the database file doesn't exist and keep
prompting to download it.
  • Loading branch information
ahmedre authored Jan 26, 2019
1 parent 9f712e3 commit 82bc771
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ public boolean hasArabicSearchDatabase(Context context) {
if (ayahInfoFile.exists() && baseDir != null) {
final File base = new File(baseDir);
final File translationsFile = new File(base, QuranDataProvider.QURAN_ARABIC_DATABASE);
if (base.mkdir()) {
if (base.exists() || base.mkdir()) {
try {
copyFile(ayahInfoFile, translationsFile);
return true;
Expand Down

0 comments on commit 82bc771

Please sign in to comment.