mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-01 04:12:12 +00:00
fix secondary locale sometimes not being loaded
This commit is contained in:
parent
307af99dff
commit
8183de7068
1 changed files with 2 additions and 2 deletions
|
@ -412,8 +412,8 @@ public class DictionaryFacilitatorImpl implements DictionaryFacilitator {
|
||||||
|
|
||||||
// create / load secondary dictionary
|
// create / load secondary dictionary
|
||||||
final Locale secondaryLocale = Settings.getInstance().getCurrent().mSecondaryLocale;
|
final Locale secondaryLocale = Settings.getInstance().getCurrent().mSecondaryLocale;
|
||||||
if (secondaryLocale != null && mainDict != null &&
|
if (secondaryLocale != null && mDictionaryGroup != null && mDictionaryGroup.mLocale != null &&
|
||||||
ScriptUtils.getScriptFromSpellCheckerLocale(secondaryLocale) == ScriptUtils.getScriptFromSpellCheckerLocale(mainDict.mLocale)) {
|
ScriptUtils.getScriptFromSpellCheckerLocale(secondaryLocale) == ScriptUtils.getScriptFromSpellCheckerLocale(mDictionaryGroup.mLocale)) {
|
||||||
for (final String subDictType : subDictTypesToUse) {
|
for (final String subDictType : subDictTypesToUse) {
|
||||||
final ExpandableBinaryDictionary subDict =
|
final ExpandableBinaryDictionary subDict =
|
||||||
getSubDict(subDictType, context, newLocale, null, dictNamePrefix, account);
|
getSubDict(subDictType, context, newLocale, null, dictNamePrefix, account);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue