Skip to content

Commit

Permalink
fix: remove wrong locale config
Browse files Browse the repository at this point in the history
This issue was introduced in: 7136ff3

com.amaze.filemanager.ui.fragments.preferencefragments.UiPrefsFragmentTest > testDefaultBehaviour[28] FAILED
    java.lang.IllegalArgumentException: list[49] is a repetition
        at android.os.LocaleList.__constructor__(LocaleList.java:193)
        at android.os.LocaleList.<init>(LocaleList.java)
        at androidx.core.os.LocaleListCompat$Api24Impl.createLocaleList(LocaleListCompat.java:341)
        at androidx.core.os.LocaleListCompat.create(LocaleListCompat.java:77)
        at androidx.core.os.LocaleListCompat.forLanguageTags(LocaleListCompat.java:172)
        at com.amaze.filemanager.utils.ContextLocaleExtKt.getLocaleListFromXml(ContextLocaleExt.kt:53)
        at com.amaze.filemanager.utils.ContextLocaleExtKt.getLangPreferenceDropdownEntries(ContextLocaleExt.kt:62)
        at com.amaze.filemanager.ui.fragments.preferencefragments.UiPrefsFragment.onCreatePreferences(UiPrefsFragment.kt:55)
        at androidx.preference.PreferenceFragmentCompat.onCreate(PreferenceFragmentCompat.java:161)
        at androidx.fragment.app.Fragment.performCreate(Fragment.java:3090)
  • Loading branch information
Bambooin committed Feb 21, 2024
1 parent 27c111f commit 17af91b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/res/xml/locales_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
<locale android:name="vi" />
<locale android:name="zh-CN" />
<locale android:name="zh-HK" />
<locale android:name="zh-HN" />
<!-- <locale android:name="zh-HN" />-->
<locale android:name="zh-TW" />
<locale android:name="zu" />
</locale-config>

0 comments on commit 17af91b

Please sign in to comment.