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

Commit 68f46d9c authored by Jean Chalard's avatar Jean Chalard Committed by Android (Google) Code Review
Browse files

Merge "Don't upcase suggestions when resuming on an uppercase word"

parents 814cf034 dfc38358
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -111,7 +111,10 @@ public final class Suggest {
                additionalFeaturesOptions, SESSION_TYPING, rawSuggestions);

        final boolean isFirstCharCapitalized = wordComposer.isFirstCharCapitalized();
        final boolean isAllUpperCase = wordComposer.isAllUpperCase();
        // If resumed, then we don't want to upcase everything: resuming on a fully-capitalized
        // words is rarely done to switch to another fully-capitalized word, but usually to a
        // normal, non-capitalized suggestion.
        final boolean isAllUpperCase = wordComposer.isAllUpperCase() && !wordComposer.isResumed();
        final String firstSuggestion;
        final String whitelistedWord;
        if (suggestionResults.isEmpty()) {