Skip to content

Commit

Permalink
Fix search when no translations are available
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedre committed Oct 29, 2017
1 parent f5d01ab commit ae83c3a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ private Cursor search(String query, List<LocalTranslation> translations) {
final boolean queryIsArabic = QuranUtils.doesStringContainArabic(query);
final boolean haveArabic = queryIsArabic &&
QuranFileUtils.hasTranslation(context, QURAN_ARABIC_DATABASE);
if (translations.size() == 0 || (queryIsArabic && !haveArabic)) {
if (translations.size() == 0 && (queryIsArabic && !haveArabic)) {
return null;
}

Expand Down

0 comments on commit ae83c3a

Please sign in to comment.