diff options
author | Gilles Debunne <debunne@google.com> | 2012-04-24 11:27:32 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-04-24 11:27:32 -0700 |
commit | 0b7d747e900dd9e6e6f62f10772c2dded9b9d0c6 (patch) | |
tree | 9460ede938f79cbf4c1a087ef1b2da38dd25b023 /core/java/android/widget/SpellChecker.java | |
parent | db41553eafab653199cef87bc2101314210ea41f (diff) | |
parent | c62589cbecef6e748bcc6c6f4ea6a8ff7656923f (diff) | |
download | frameworks_base-0b7d747e900dd9e6e6f62f10772c2dded9b9d0c6.zip frameworks_base-0b7d747e900dd9e6e6f62f10772c2dded9b9d0c6.tar.gz frameworks_base-0b7d747e900dd9e6e6f62f10772c2dded9b9d0c6.tar.bz2 |
Merge "Editor uses a SpanWatcher to track EasyEditSpans"
Diffstat (limited to 'core/java/android/widget/SpellChecker.java')
-rw-r--r-- | core/java/android/widget/SpellChecker.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/java/android/widget/SpellChecker.java b/core/java/android/widget/SpellChecker.java index 02cb46b..a91b16e 100644 --- a/core/java/android/widget/SpellChecker.java +++ b/core/java/android/widget/SpellChecker.java @@ -212,6 +212,7 @@ public class SpellChecker implements SpellCheckerSessionListener { public void spellCheck(int start, int end) { final Locale locale = mTextView.getTextServicesLocale(); + final boolean isSessionActive = isSessionActive(); if (mCurrentLocale == null || (!(mCurrentLocale.equals(locale)))) { setLocale(locale); // Re-check the entire text @@ -219,13 +220,13 @@ public class SpellChecker implements SpellCheckerSessionListener { end = mTextView.getText().length(); } else { final boolean spellCheckerActivated = mTextServicesManager.isSpellCheckerEnabled(); - if (isSessionActive() != spellCheckerActivated) { + if (isSessionActive != spellCheckerActivated) { // Spell checker has been turned of or off since last spellCheck resetSession(); } } - if (!isSessionActive()) return; + if (!isSessionActive) return; // Find first available SpellParser from pool final int length = mSpellParsers.length; |