fixed 0-key causing database requests
This commit is contained in:
parent
0e9954864e
commit
24ba7c3e1d
2 changed files with 2 additions and 3 deletions
|
|
@ -105,7 +105,7 @@ abstract public class InputMode {
|
||||||
|
|
||||||
public void reset() {
|
public void reset() {
|
||||||
autoAcceptTimeout = -1;
|
autoAcceptTimeout = -1;
|
||||||
specialCharSelectedGroup = 0;
|
specialCharSelectedGroup = -1;
|
||||||
suggestions.clear();
|
suggestions.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -253,12 +253,11 @@ public class ModePredictive extends InputMode {
|
||||||
* options for the current digitSequence.
|
* options for the current digitSequence.
|
||||||
*/
|
*/
|
||||||
private boolean loadStaticSuggestions(Runnable onLoad) {
|
private boolean loadStaticSuggestions(Runnable onLoad) {
|
||||||
if (digitSequence.equals(Language.PUNCTUATION_KEY)) {
|
if (digitSequence.equals(Language.PUNCTUATION_KEY) || digitSequence.equals(Language.SPECIAL_CHARS_KEY)) {
|
||||||
super.nextSpecialCharacters();
|
super.nextSpecialCharacters();
|
||||||
onLoad.run();
|
onLoad.run();
|
||||||
return true;
|
return true;
|
||||||
} else if (digitSequence.equals(EmojiLanguage.EMOJI_SEQUENCE)) {
|
} else if (digitSequence.equals(EmojiLanguage.EMOJI_SEQUENCE)) {
|
||||||
specialCharSelectedGroup = -1;
|
|
||||||
nextSpecialCharacters(new EmojiLanguage());
|
nextSpecialCharacters(new EmojiLanguage());
|
||||||
onLoad.run();
|
onLoad.run();
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue