fixed unexpected or disappearing suggestions when changing the language in the middle of a word
This commit is contained in:
parent
1a1c0ec910
commit
acef3fc20d
1 changed files with 10 additions and 3 deletions
|
|
@ -283,7 +283,16 @@ public class TraditionalT9 extends KeyPadHandler {
|
||||||
|
|
||||||
|
|
||||||
protected boolean onKeyNextLanguage() {
|
protected boolean onKeyNextLanguage() {
|
||||||
return nextLang();
|
if (nextLang()) {
|
||||||
|
commitCurrentSuggestion(false);
|
||||||
|
mInputMode.reset();
|
||||||
|
resetKeyRepeat();
|
||||||
|
clearSuggestions();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -497,8 +506,6 @@ public class TraditionalT9 extends KeyPadHandler {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
clearSuggestions();
|
|
||||||
|
|
||||||
// select the next language
|
// select the next language
|
||||||
int previousLangId = mEnabledLanguages.indexOf(mLanguage.getId());
|
int previousLangId = mEnabledLanguages.indexOf(mLanguage.getId());
|
||||||
int nextLangId = previousLangId == -1 ? 0 : (previousLangId + 1) % mEnabledLanguages.size();
|
int nextLangId = previousLangId == -1 ? 0 : (previousLangId + 1) % mEnabledLanguages.size();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue