summaryrefslogtreecommitdiffstats
path: root/core/java/android/widget/SpellChecker.java
diff options
context:
space:
mode:
authorGilles Debunne <debunne@google.com>2012-04-24 11:27:32 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-04-24 11:27:32 -0700
commit0b7d747e900dd9e6e6f62f10772c2dded9b9d0c6 (patch)
tree9460ede938f79cbf4c1a087ef1b2da38dd25b023 /core/java/android/widget/SpellChecker.java
parentdb41553eafab653199cef87bc2101314210ea41f (diff)
parentc62589cbecef6e748bcc6c6f4ea6a8ff7656923f (diff)
downloadframeworks_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.java5
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;