Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/src/main/java/helium314/keyboard/latin/Suggest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,10 @@ class Suggest(private val mDictionaryFacilitator: DictionaryFacilitator) {
rejected = null
}
SuggestedWordInfo.removeDupsAndTypedWord(null, suggestionsContainer)
// Same as for typing: a word swiped mid-sentence without shift should not come out as "Well" or "So"
if (keyboardShiftMode == WordComposer.CAPS_MODE_OFF && !wordComposer.wasAutoCapitalized()) {
removeTitleCaseVariants(null, suggestionsContainer, mDictionaryFacilitator.currentLocale)
}
makeFirstTwoSuggestionsNonEmoji(suggestionsContainer)

// For some reason some suggestions with MIN_VALUE are making their way here.
Expand Down
Loading