Disable shortcut output for multi-word suggestions.
Bug: 9682742 Change-Id: I9e0a5acd9053d141e018c4653e4baf0f77aacb45main
parent
d365d82d51
commit
9a4f7a3761
|
@ -227,9 +227,14 @@ int Suggest::outputSuggestions(DicTraverseSession *traverseSession, int *frequen
|
||||||
++outputWordIndex;
|
++outputWordIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!terminalDicNode->hasMultipleWords()) {
|
||||||
|
// Shortcut is not supported for multiple words suggestions.
|
||||||
|
// TODO: Check shortcuts during traversal for multiple words suggestions.
|
||||||
const bool sameAsTyped = TRAVERSAL->sameAsTyped(traverseSession, terminalDicNode);
|
const bool sameAsTyped = TRAVERSAL->sameAsTyped(traverseSession, terminalDicNode);
|
||||||
outputWordIndex = ShortcutUtils::outputShortcuts(&terminalAttributes, outputWordIndex,
|
outputWordIndex = ShortcutUtils::outputShortcuts(&terminalAttributes, outputWordIndex,
|
||||||
finalScore, outputCodePoints, frequencies, outputTypes, sameAsTyped);
|
finalScore, outputCodePoints, frequencies, outputTypes, sameAsTyped);
|
||||||
|
|
||||||
|
}
|
||||||
DicNode::managedDelete(terminalDicNode);
|
DicNode::managedDelete(terminalDicNode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue