Skip to content
Snippets Groups Projects
Commit e10f56ae authored by Amith Yamasani's avatar Amith Yamasani Committed by Android Git Automerger
Browse files

am 24c1ff49: am 5b63c38d: Fix 2306814: Too aggressive suggesting names from my contacts list.

Merge commit '24c1ff49' into eclair-mr2-plus-aosp

* commit '24c1ff49':
  Fix 2306814: Too aggressive suggesting names from my contacts list.
parents f4eb9bd9 24c1ff49
No related branches found
No related tags found
No related merge requests found
...@@ -105,8 +105,8 @@ public class ExpandableDictionary extends Dictionary { ...@@ -105,8 +105,8 @@ public class ExpandableDictionary extends Dictionary {
if (wordLength == depth + 1) { if (wordLength == depth + 1) {
// Terminate this word // Terminate this word
childNode.terminal = true; childNode.terminal = true;
childNode.frequency += frequency; // If there are multiple similar words childNode.frequency = Math.max(frequency, childNode.frequency);
if (childNode.frequency > 256) childNode.frequency = 256; if (childNode.frequency > 255) childNode.frequency = 255;
return; return;
} }
if (childNode.children == null) { if (childNode.children == null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment