Skip to content
Snippets Groups Projects
Commit 938c0a37 authored by Ken Wakasa's avatar Ken Wakasa Committed by Android Git Automerger
Browse files

am 364da8c6: Fix - "Touch again to save" not working for manually picked...

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

Merge commit '364da8c6' into gingerbread-plus-aosp

* commit '364da8c6':
  Fix - "Touch again to save" not working for manually picked suggestion when re-correction is enabled.
parents 02b8d91b 364da8c6
No related branches found
No related tags found
No related merge requests found
...@@ -817,7 +817,10 @@ public class LatinIME extends InputMethodService ...@@ -817,7 +817,10 @@ public class LatinIME extends InputMethodService
} else { } else {
abortCorrection(false); abortCorrection(false);
// Show the punctuation suggestions list if the current one is not // 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(); setNextSuggestions();
} }
} }
...@@ -1935,7 +1938,7 @@ public class LatinIME extends InputMethodService ...@@ -1935,7 +1938,7 @@ public class LatinIME extends InputMethodService
TextEntryState.typedCharacter((char) KEYCODE_SPACE, true); TextEntryState.typedCharacter((char) KEYCODE_SPACE, true);
setNextSuggestions(); setNextSuggestions();
} else if (!showingAddToDictionaryHint) { } 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. // In case the cursor position doesn't change, make sure we show the suggestions again.
clearSuggestions(); clearSuggestions();
postUpdateOldSuggestions(); postUpdateOldSuggestions();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment