Fix PersianCalendar not showing

This commit is contained in:
arm64v8a 2021-11-17 22:17:21 +08:00
parent f7c18a91a4
commit d09b2201e5
1 changed files with 1 additions and 4 deletions

View File

@ -103,7 +103,7 @@ public class LocaleController {
private HashMap<String, String> translitChars;
private HashMap<String, String> ruTranslitChars;
public static boolean usePersianCalendar;
public static boolean usePersianCalendar = NekomuraConfig.usePersianCalendar.Bool(); // need restart
private class TimeZoneChangedReceiver extends BroadcastReceiver {
@Override
@ -983,9 +983,6 @@ public class LocaleController {
currentLocale = newLocale;
currentLocaleInfo = localeInfo;
// reloadPersianCalendarConfig
usePersianCalendar = NekomuraConfig.usePersianCalendar.Bool();
if (!TextUtils.isEmpty(currentLocaleInfo.pluralLangCode)) {
currentPluralRules = allRules.get(currentLocaleInfo.pluralLangCode);
}