Merge "Do not spell check the foreground ExtractEditText." into ics-mr1

This commit is contained in:
Gilles Debunne
2011-12-13 15:36:48 -08:00
committed by Android (Google) Code Review

View File

@@ -7802,7 +7802,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
* Create new SpellCheckSpans on the modified region.
*/
private void updateSpellCheckSpans(int start, int end, boolean createSpellChecker) {
if (isTextEditable() && isSuggestionsEnabled()) {
if (isTextEditable() && isSuggestionsEnabled() && !(this instanceof ExtractEditText)) {
if (mSpellChecker == null && createSpellChecker) {
mSpellChecker = new SpellChecker(this);
}