Skip to content

Commit

Permalink
spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
papasmile committed Jul 24, 2020
1 parent b7f5aca commit 604b9bf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.quran.labs.androidquran.common

class LocalTransationDiplaySort : Comparator<LocalTranslation> {
class LocalTranslationDisplaySort : Comparator<LocalTranslation> {
override fun compare(p0: LocalTranslation, p1: LocalTranslation): Int {
return p0.displayOrder.compareTo(p1.displayOrder);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import com.quran.labs.androidquran.QuranPreferenceActivity;
import com.quran.labs.androidquran.R;
import com.quran.labs.androidquran.SearchActivity;
import com.quran.labs.androidquran.common.LocalTransationDiplaySort;
import com.quran.labs.androidquran.common.LocalTranslationDisplaySort;
import com.quran.labs.androidquran.common.LocalTranslation;
import com.quran.labs.androidquran.common.audio.QariItem;
import com.quran.labs.androidquran.di.component.activity.PagerActivityComponent;
Expand Down Expand Up @@ -1358,7 +1358,7 @@ private void requestTranslationsList() {
@Override
public void onSuccess(List<LocalTranslation> translationList) {
final List<LocalTranslation> sortedTranslations = new ArrayList<>(translationList);
Collections.sort(sortedTranslations, new LocalTransationDiplaySort());
Collections.sort(sortedTranslations, new LocalTranslationDisplaySort());

int items = sortedTranslations.size();
String[] titles = new String[items];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import com.quran.labs.androidquran.BuildConfig;
import com.quran.labs.androidquran.R;
import com.quran.labs.androidquran.common.LocalTransationDiplaySort;
import com.quran.labs.androidquran.common.LocalTranslationDisplaySort;
import com.quran.labs.androidquran.common.LocalTranslation;
import com.quran.labs.androidquran.common.QuranAyahInfo;
import com.quran.labs.androidquran.common.TranslationMetadata;
Expand Down Expand Up @@ -110,7 +110,7 @@ public void setVerses(@NonNull QuranDisplayData quranDisplayData,
}

final LocalTranslation[] sortedTranslations = Arrays.copyOf(this.translations, this.translations.length);
Arrays.sort(sortedTranslations, new LocalTransationDiplaySort());
Arrays.sort(sortedTranslations, new LocalTranslationDisplaySort());

for (int j = 0; j < sortedTranslations.length; j++) {
final TranslationMetadata metadata = findText(verse.texts, sortedTranslations[j].getId());
Expand Down

0 comments on commit 604b9bf

Please sign in to comment.