mirror of
https://github.com/MGislv/NekoX.git
synced 2024-07-04 11:13:36 +00:00
fix usePersianCalendar
This commit is contained in:
parent
bcfbe63b3d
commit
099ecfbae1
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user