From ce084927e1377b33a926df033eb85607188e89db Mon Sep 17 00:00:00 2001 From: m2049r Date: Sat, 22 Oct 2022 11:32:44 +0200 Subject: [PATCH] fix langauge list --- app/src/main/java/com/m2049r/xmrwallet/util/LocaleHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/m2049r/xmrwallet/util/LocaleHelper.java b/app/src/main/java/com/m2049r/xmrwallet/util/LocaleHelper.java index fb79cf98..5066e3b2 100644 --- a/app/src/main/java/com/m2049r/xmrwallet/util/LocaleHelper.java +++ b/app/src/main/java/com/m2049r/xmrwallet/util/LocaleHelper.java @@ -35,7 +35,8 @@ public class LocaleHelper { String[] availableLocales = context.getString(R.string.available_locales).split(","); for (String localeName : availableLocales) { - locales.add(Locale.forLanguageTag(localeName)); + if (!localeName.startsWith("night") && !localeName.matches("v[0-9]+")) + locales.add(Locale.forLanguageTag(localeName)); } return locales;