|
|
@ -1418,7 +1418,6 @@ public class Helper {
|
|
|
|
|
|
|
|
|
|
|
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
|
|
|
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
|
|
|
|
Locale l = Locale.getDefault();
|
|
|
|
Locale l = Locale.getDefault();
|
|
|
|
if (!l.getLanguage().equals(language))
|
|
|
|
|
|
|
|
locales.add(l);
|
|
|
|
locales.add(l);
|
|
|
|
if (!"en".equals(language) && !"en".equals(l.getLanguage()))
|
|
|
|
if (!"en".equals(language) && !"en".equals(l.getLanguage()))
|
|
|
|
locales.add(new Locale("en"));
|
|
|
|
locales.add(new Locale("en"));
|
|
|
@ -1426,7 +1425,6 @@ public class Helper {
|
|
|
|
LocaleList ll = context.getResources().getConfiguration().getLocales();
|
|
|
|
LocaleList ll = context.getResources().getConfiguration().getLocales();
|
|
|
|
for (int i = 0; i < ll.size(); i++) {
|
|
|
|
for (int i = 0; i < ll.size(); i++) {
|
|
|
|
Locale l = ll.get(i);
|
|
|
|
Locale l = ll.get(i);
|
|
|
|
if (!l.getLanguage().equals(language))
|
|
|
|
|
|
|
|
locales.add(l);
|
|
|
|
locales.add(l);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1437,6 +1435,7 @@ public class Helper {
|
|
|
|
configuration.setLocale(locale);
|
|
|
|
configuration.setLocale(locale);
|
|
|
|
Resources res = context.createConfigurationContext(configuration).getResources();
|
|
|
|
Resources res = context.createConfigurationContext(configuration).getResources();
|
|
|
|
String text = res.getString(resid, formatArgs);
|
|
|
|
String text = res.getString(resid, formatArgs);
|
|
|
|
|
|
|
|
if (!result.contains(text))
|
|
|
|
result.add(text);
|
|
|
|
result.add(text);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|