Skip to content

Commit

Permalink
hiding suggestions while quick-text keyboards shown
Browse files Browse the repository at this point in the history
  • Loading branch information
menny committed Nov 20, 2016
1 parent 354bfe0 commit e6a837e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/main/java/com/anysoftkeyboard/AnySoftKeyboard.java
Original file line number Diff line number Diff line change
Expand Up @@ -1750,8 +1750,9 @@ private void handleShift() {
}
}

private void abortCorrection(boolean force, boolean forever) {
mSuggest.resetNextWordSentence();
@Override
protected void abortCorrection(boolean force, boolean forever) {
super.abortCorrection(force, forever);
mJustAutoAddedWord = false;
if (force || TextEntryState.isCorrecting()) {
mKeyboardHandler.removeMessages(KeyboardUIStateHandler.MSG_UPDATE_SUGGESTIONS);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,4 +205,9 @@ protected Suggest createSuggest() {
protected void onLoadSettingsRequired(SharedPreferences sharedPreferences) {

}

@CallSuper
protected void abortCorrection(boolean force, boolean forever) {
mSuggest.resetNextWordSentence();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ private void outputCurrentQuickTextKey(Keyboard.Key key) {
}

private void switchToQuickTextKeyboard() {
abortCorrection(true, false);
setCandidatesViewShown(false);

cleanUpQuickTextKeyboard(false);
View standardKeyboardView = (View) getInputView();
final int height = standardKeyboardView.getHeight();
Expand Down

0 comments on commit e6a837e

Please sign in to comment.