mirror of https://github.com/NekoX-Dev/NekoX.git
Fix PersianCalendar not showing
This commit is contained in:
parent
f7c18a91a4
commit
d09b2201e5
|
@ -103,7 +103,7 @@ public class LocaleController {
|
||||||
private HashMap<String, String> translitChars;
|
private HashMap<String, String> translitChars;
|
||||||
private HashMap<String, String> ruTranslitChars;
|
private HashMap<String, String> ruTranslitChars;
|
||||||
|
|
||||||
public static boolean usePersianCalendar;
|
public static boolean usePersianCalendar = NekomuraConfig.usePersianCalendar.Bool(); // need restart
|
||||||
|
|
||||||
private class TimeZoneChangedReceiver extends BroadcastReceiver {
|
private class TimeZoneChangedReceiver extends BroadcastReceiver {
|
||||||
@Override
|
@Override
|
||||||
|
@ -983,9 +983,6 @@ public class LocaleController {
|
||||||
currentLocale = newLocale;
|
currentLocale = newLocale;
|
||||||
currentLocaleInfo = localeInfo;
|
currentLocaleInfo = localeInfo;
|
||||||
|
|
||||||
// reloadPersianCalendarConfig
|
|
||||||
usePersianCalendar = NekomuraConfig.usePersianCalendar.Bool();
|
|
||||||
|
|
||||||
if (!TextUtils.isEmpty(currentLocaleInfo.pluralLangCode)) {
|
if (!TextUtils.isEmpty(currentLocaleInfo.pluralLangCode)) {
|
||||||
currentPluralRules = allRules.get(currentLocaleInfo.pluralLangCode);
|
currentPluralRules = allRules.get(currentLocaleInfo.pluralLangCode);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue