mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Recompute suggestions on language change."
This commit is contained in:
commit
3dd4bcb283
@ -2293,6 +2293,14 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||
}
|
||||
initSuggest();
|
||||
loadSettings();
|
||||
// Since we just changed languages, we should re-evaluate suggestions with whatever word
|
||||
// we are currently composing. If we are not composing anything, we may want to display
|
||||
// predictions or punctuation signs (which is done by updateBigramPredictions anyway).
|
||||
if (isCursorTouchingWord()) {
|
||||
mHandler.postUpdateSuggestions();
|
||||
} else {
|
||||
mHandler.postUpdateBigramPredictions();
|
||||
}
|
||||
}
|
||||
|
||||
public void hapticAndAudioFeedback(int primaryCode) {
|
||||
|
Loading…
Reference in New Issue
Block a user