From 604b9bf451792f7ce88b76a26f99c1af04f8b592 Mon Sep 17 00:00:00 2001 From: ismailjones Date: Fri, 24 Jul 2020 09:24:54 -0400 Subject: [PATCH] spelling --- ...TransationDiplaySort.kt => LocalTranslationDisplaySort.kt} | 2 +- .../java/com/quran/labs/androidquran/ui/PagerActivity.java | 4 ++-- .../labs/androidquran/ui/translation/TranslationView.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename app/src/main/java/com/quran/labs/androidquran/common/{LocalTransationDiplaySort.kt => LocalTranslationDisplaySort.kt} (72%) diff --git a/app/src/main/java/com/quran/labs/androidquran/common/LocalTransationDiplaySort.kt b/app/src/main/java/com/quran/labs/androidquran/common/LocalTranslationDisplaySort.kt similarity index 72% rename from app/src/main/java/com/quran/labs/androidquran/common/LocalTransationDiplaySort.kt rename to app/src/main/java/com/quran/labs/androidquran/common/LocalTranslationDisplaySort.kt index e21b55b9d7..888836241f 100644 --- a/app/src/main/java/com/quran/labs/androidquran/common/LocalTransationDiplaySort.kt +++ b/app/src/main/java/com/quran/labs/androidquran/common/LocalTranslationDisplaySort.kt @@ -1,6 +1,6 @@ package com.quran.labs.androidquran.common -class LocalTransationDiplaySort : Comparator { +class LocalTranslationDisplaySort : Comparator { override fun compare(p0: LocalTranslation, p1: LocalTranslation): Int { return p0.displayOrder.compareTo(p1.displayOrder); } diff --git a/app/src/main/java/com/quran/labs/androidquran/ui/PagerActivity.java b/app/src/main/java/com/quran/labs/androidquran/ui/PagerActivity.java index b4b1a1968d..3a51f9af9f 100644 --- a/app/src/main/java/com/quran/labs/androidquran/ui/PagerActivity.java +++ b/app/src/main/java/com/quran/labs/androidquran/ui/PagerActivity.java @@ -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; @@ -1358,7 +1358,7 @@ private void requestTranslationsList() { @Override public void onSuccess(List translationList) { final List sortedTranslations = new ArrayList<>(translationList); - Collections.sort(sortedTranslations, new LocalTransationDiplaySort()); + Collections.sort(sortedTranslations, new LocalTranslationDisplaySort()); int items = sortedTranslations.size(); String[] titles = new String[items]; diff --git a/app/src/main/java/com/quran/labs/androidquran/ui/translation/TranslationView.java b/app/src/main/java/com/quran/labs/androidquran/ui/translation/TranslationView.java index 67377da203..e720d4c6be 100644 --- a/app/src/main/java/com/quran/labs/androidquran/ui/translation/TranslationView.java +++ b/app/src/main/java/com/quran/labs/androidquran/ui/translation/TranslationView.java @@ -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; @@ -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());