minor modes cleanup
This commit is contained in:
parent
76fed90753
commit
25657d12a8
4 changed files with 1 additions and 8 deletions
|
|
@ -84,7 +84,7 @@ abstract public class InputMode {
|
||||||
|
|
||||||
// Utility
|
// Utility
|
||||||
abstract public int getId();
|
abstract public int getId();
|
||||||
abstract public int getSequenceLength(); // The number of key presses for the current word.
|
public int getSequenceLength() { return digitSequence.length(); } // The number of key presses for the current word.
|
||||||
public int getAutoAcceptTimeout() {
|
public int getAutoAcceptTimeout() {
|
||||||
return autoAcceptTimeout;
|
return autoAcceptTimeout;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,6 @@ public class ModeABC extends InputMode {
|
||||||
shouldSelectNextLetter = true; // do not accept any previous suggestions after loading the new ones
|
shouldSelectNextLetter = true; // do not accept any previous suggestions after loading the new ones
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override public int getSequenceLength() { return 1; }
|
|
||||||
@Override public void onAcceptSuggestion(@NonNull String word) { reset(); }
|
@Override public void onAcceptSuggestion(@NonNull String word) { reset(); }
|
||||||
@Override public boolean shouldAcceptPreviousSuggestion() { return !shouldSelectNextLetter; }
|
@Override public boolean shouldAcceptPreviousSuggestion() { return !shouldSelectNextLetter; }
|
||||||
@Override public boolean shouldSelectNextSuggestion() { return shouldSelectNextLetter; }
|
@Override public boolean shouldSelectNextSuggestion() { return shouldSelectNextLetter; }
|
||||||
|
|
|
||||||
|
|
@ -421,8 +421,6 @@ public class ModePredictive extends InputMode {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override public int getSequenceLength() { return digitSequence.length(); }
|
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
|
|
||||||
|
|
@ -23,10 +23,6 @@ public class Predictions {
|
||||||
private ArrayList<String> words = new ArrayList<>();
|
private ArrayList<String> words = new ArrayList<>();
|
||||||
|
|
||||||
|
|
||||||
public Predictions() {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Predictions setLanguage(Language language) {
|
public Predictions setLanguage(Language language) {
|
||||||
this.language = language;
|
this.language = language;
|
||||||
return this;
|
return this;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue