Skip to content

Commit

Permalink
Fix missing Arabic search database
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedre committed Dec 1, 2024
1 parent 61ef7e8 commit 8e9fab8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ class QuranDataProvider : ContentProvider() {
return null
}
val queryIsArabic = QuranUtils.doesStringContainArabic(query)
val haveArabic = queryIsArabic &&
quranFileUtils.hasTranslation(QURAN_ARABIC_DATABASE)
val haveArabic = queryIsArabic && quranFileUtils.hasArabicSearchDatabase()
val translations = availableTranslations()
if (translations.isEmpty() && queryIsArabic && !haveArabic) {
return null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ class QuranFileUtils @Inject constructor(
if (ayahInfoFile.exists()) {
val translationsFile =
File(base, QuranDataProvider.QURAN_ARABIC_DATABASE)
if (base.exists() || base.parentFile?.mkdirs() == true) {
if (base.exists() || base.mkdirs() == true) {
try {
copyFile(ayahInfoFile, translationsFile)
return true
Expand Down

0 comments on commit 8e9fab8

Please sign in to comment.