Merge "Avoid recorrection in ex-password fields."

main
Jean Chalard 2013-09-12 12:29:33 +00:00 committed by Android (Google) Code Review
commit 40666017c9
1 changed files with 2 additions and 0 deletions

View File

@ -2671,6 +2671,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
// recorrection. This is a temporary, stopgap measure that will be removed later. // recorrection. This is a temporary, stopgap measure that will be removed later.
// TODO: remove this. // TODO: remove this.
if (mAppWorkAroundsUtils.isBrokenByRecorrection()) return; if (mAppWorkAroundsUtils.isBrokenByRecorrection()) return;
// A simple way to test for support from the TextView.
if (!isSuggestionsStripVisible()) return;
// Recorrection is not supported in languages without spaces because we don't know // Recorrection is not supported in languages without spaces because we don't know
// how to segment them yet. // how to segment them yet.
if (!mSettings.getCurrent().mCurrentLanguageHasSpaces) return; if (!mSettings.getCurrent().mCurrentLanguageHasSpaces) return;