mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-04-21 22:59:10 +00:00
add comments
This commit is contained in:
parent
c9ed9fd9cb
commit
d480a6321f
1 changed files with 6 additions and 0 deletions
|
@ -110,6 +110,7 @@ public class DictionaryFacilitatorImpl implements DictionaryFacilitator {
|
|||
mValidSpellingWordWriteCache = cache;
|
||||
}
|
||||
|
||||
// judging by usage, this should check primary locale only
|
||||
@Override
|
||||
public boolean isForLocale(final Locale locale) {
|
||||
return locale != null && locale.equals(mDictionaryGroups.get(0).mLocale);
|
||||
|
@ -290,6 +291,11 @@ public class DictionaryFacilitatorImpl implements DictionaryFacilitator {
|
|||
return mDictionaryGroups.get(0).mLocale != null;
|
||||
}
|
||||
|
||||
// used in
|
||||
// putWordIntoValidSpellingWordCache -> should probably return most confidence locale, but the cache is not used anyway
|
||||
// LatinIME.resetSuggestMainDict -> should return primary locale
|
||||
// Suggest.getSuggestedWordsFor... -> should not matter if suggestions have a word locale, todo: check whether they do!
|
||||
// InputLogic.getDictionaryFacilitatorLocale -> not sure, but probably doesn't matter
|
||||
@Override
|
||||
public Locale getLocale() {
|
||||
return mDictionaryGroups.get(0).mLocale;
|
||||
|
|
Loading…
Add table
Reference in a new issue