Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24c1ff49 authored by Amith Yamasani's avatar Amith Yamasani Committed by Android Git Automerger
Browse files

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

Merge commit '5b63c38d' into eclair-mr2

* commit '5b63c38d':
  Fix 2306814: Too aggressive suggesting names from my contacts list.
parents 82c68bfb 5b63c38d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -105,8 +105,8 @@ public class ExpandableDictionary extends Dictionary {
        if (wordLength == depth + 1) {
            // Terminate this word
            childNode.terminal = true;
            childNode.frequency += frequency; // If there are multiple similar words
            if (childNode.frequency > 256) childNode.frequency = 256;
            childNode.frequency = Math.max(frequency, childNode.frequency);
            if (childNode.frequency > 255) childNode.frequency = 255;
            return;
        }
        if (childNode.children == null) {