Recompute suggestions on language change.
Bug: 6106407 Change-Id: I43d9c89610a9ed7a9f6825bd90334d7b343df52c
This commit is contained in:
parent
89ffb212b4
commit
b84ee82e66
1 changed files with 8 additions and 0 deletions
|
@ -2266,6 +2266,14 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||||
}
|
}
|
||||||
initSuggest();
|
initSuggest();
|
||||||
loadSettings();
|
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) {
|
public void hapticAndAudioFeedback(int primaryCode) {
|
||||||
|
|
Loading…
Reference in a new issue