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

Commit 6cf492e4 authored by Satoshi Kataoka's avatar Satoshi Kataoka Committed by Android Git Automerger
Browse files

am 941b288c: am df2eae6e: Fix exact match profanity

* commit '941b288c':
  Fix exact match profanity
parents 03fe0cf4 941b288c
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -164,8 +164,8 @@ int Suggest::outputSuggestions(DicTraverseSession *traverseSession, int *frequen
        const bool isPossiblyOffensiveWord = terminalDicNode->getProbability() <= 0;
        const bool isPossiblyOffensiveWord = terminalDicNode->getProbability() <= 0;
        const bool isExactMatch = terminalDicNode->isExactMatch();
        const bool isExactMatch = terminalDicNode->isExactMatch();
        const int outputTypeFlags =
        const int outputTypeFlags =
                isPossiblyOffensiveWord ? Dictionary::KIND_FLAG_POSSIBLY_OFFENSIVE : 0
                (isPossiblyOffensiveWord ? Dictionary::KIND_FLAG_POSSIBLY_OFFENSIVE : 0)
                | isExactMatch ? Dictionary::KIND_FLAG_EXACT_MATCH : 0;
                        | (isExactMatch ? Dictionary::KIND_FLAG_EXACT_MATCH : 0);


        // Entries that are blacklisted or do not represent a word should not be output.
        // Entries that are blacklisted or do not represent a word should not be output.
        const bool isValidWord = !terminalAttributes.isBlacklistedOrNotAWord();
        const bool isValidWord = !terminalAttributes.isBlacklistedOrNotAWord();