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() {
|
||||
autoAcceptTimeout = -1;
|
||||
specialCharSelectedGroup = 0;
|
||||
specialCharSelectedGroup = -1;
|
||||
suggestions.clear();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -253,12 +253,11 @@ public class ModePredictive extends InputMode {
|
|||
* options for the current digitSequence.
|
||||
*/
|
||||
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();
|
||||
onLoad.run();
|
||||
return true;
|
||||
} else if (digitSequence.equals(EmojiLanguage.EMOJI_SEQUENCE)) {
|
||||
specialCharSelectedGroup = -1;
|
||||
nextSpecialCharacters(new EmojiLanguage());
|
||||
onLoad.run();
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue