Merge "Reinstate putting shortcut-only entries in the dictionary" into jb-mr1-dev
This commit is contained in:
commit
28f73ef3d9
1 changed files with 4 additions and 0 deletions
|
@ -90,6 +90,10 @@ public class XmlDictInputOutput {
|
||||||
|
|
||||||
public FusionDictionary getFinalDictionary() {
|
public FusionDictionary getFinalDictionary() {
|
||||||
final FusionDictionary dict = mDictionary;
|
final FusionDictionary dict = mDictionary;
|
||||||
|
for (final String shortcutOnly : mShortcutsMap.keySet()) {
|
||||||
|
if (dict.hasWord(shortcutOnly)) continue;
|
||||||
|
dict.add(shortcutOnly, 0, mShortcutsMap.get(shortcutOnly));
|
||||||
|
}
|
||||||
mDictionary = null;
|
mDictionary = null;
|
||||||
mShortcutsMap.clear();
|
mShortcutsMap.clear();
|
||||||
mWord = "";
|
mWord = "";
|
||||||
|
|
Loading…
Reference in a new issue