Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 364da8c6 authored by Ken Wakasa's avatar Ken Wakasa
Browse files

Fix - "Touch again to save" not working for manually picked suggestion when...

Fix - "Touch again to save" not working for manually picked suggestion when re-correction is enabled.

bug: 3082806
Change-Id: I64e652b0ad1d496e102a7cc2cf9a5615df423192
parent 7e1f5a2d
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -817,7 +817,10 @@ public class LatinIME extends InputMethodService
                    } else {
                        abortCorrection(false);
                        // Show the punctuation suggestions list if the current one is not
                        if (!mSuggestPuncList.equals(mCandidateView.getSuggestions())) {
                        // and if not showing "Touch again to save".
                        if (mCandidateView != null
                                && !mSuggestPuncList.equals(mCandidateView.getSuggestions())
                                        && !mCandidateView.isShowingAddToDictionaryHint()) {
                            setNextSuggestions();
                        }
                    }
@@ -1935,7 +1938,7 @@ public class LatinIME extends InputMethodService
            TextEntryState.typedCharacter((char) KEYCODE_SPACE, true);
            setNextSuggestions();
        } else if (!showingAddToDictionaryHint) {
            // If we're not showing the "Touch again to save hint", then show corrections again.
            // If we're not showing the "Touch again to save", then show corrections again.
            // In case the cursor position doesn't change, make sure we show the suggestions again.
            clearSuggestions();
            postUpdateOldSuggestions();