1
0
mirror of https://github.com/MGislv/NekoX.git synced 2024-07-04 11:13:36 +00:00

fix usePersianCalendar

This commit is contained in:
arm64v8a 2021-11-01 21:11:08 +08:00
parent bcfbe63b3d
commit 099ecfbae1

View File

@ -983,7 +983,8 @@ public class LocaleController {
currentLocale = newLocale;
currentLocaleInfo = localeInfo;
reloadPersianCalendarConfig();
// reloadPersianCalendarConfig
usePersianCalendar = NekomuraConfig.usePersianCalendar.Bool();
if (!TextUtils.isEmpty(currentLocaleInfo.pluralLangCode)) {
currentPluralRules = allRules.get(currentLocaleInfo.pluralLangCode);
@ -1018,10 +1019,6 @@ public class LocaleController {
recreateFormatters();
}
public static void reloadPersianCalendarConfig() {
usePersianCalendar = NekomuraConfig.usePersianCalendar.Bool() && "fa".equals(getInstance().currentLocaleInfo.pluralLangCode);
}
public LocaleInfo getCurrentLocaleInfo() {
return currentLocaleInfo;
}