mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Use a freq of 1 instead of 0 for non-word shortcuts." into jb-mr1-dev
This commit is contained in:
commit
dc38a3438b
@ -350,7 +350,7 @@ final class BinaryDictionaryGetter {
|
||||
// of the dictionary would lose whitelist functionality.
|
||||
private static boolean hackCanUseDictionaryFile(final Locale locale, final File f) {
|
||||
// Only for English - other languages didn't have a whitelist, hence this
|
||||
// ad-hock ## HACK ##
|
||||
// ad-hoc ## HACK ##
|
||||
if (!Locale.ENGLISH.getLanguage().equals(locale.getLanguage())) return true;
|
||||
|
||||
FileInputStream inStream = null;
|
||||
|
@ -93,7 +93,7 @@ public class XmlDictInputOutput {
|
||||
final FusionDictionary dict = mDictionary;
|
||||
for (final String shortcutOnly : mShortcutsMap.keySet()) {
|
||||
if (dict.hasWord(shortcutOnly)) continue;
|
||||
dict.add(shortcutOnly, 0, mShortcutsMap.get(shortcutOnly), true /* isNotAWord */);
|
||||
dict.add(shortcutOnly, 1, mShortcutsMap.get(shortcutOnly), true /* isNotAWord */);
|
||||
}
|
||||
mDictionary = null;
|
||||
mShortcutsMap.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user