summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorauto_test2015-09-16 19:30:22 +0800
committerauto_test2015-09-16 19:30:22 +0800
commit42bd4a6076257d5c8b4668b2fc8674c0b597cd47 (patch)
tree2964b967138b56a70243833c7c530e9cd262e354
parenta72b73e5cced726702acf5fbb5f37e4129950052 (diff)
fix problem when set languageAndInputMethod
-rw-r--r--src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java b/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java
index 25ee17c..f7e3da2 100644
--- a/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java
+++ b/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java
@@ -262,7 +262,8 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment
Context.TEXT_SERVICES_MANAGER_SERVICE);
if (tsm.isSpellCheckerEnabled()) {
final SpellCheckerInfo sci = tsm.getCurrentSpellChecker();
- spellChecker.setSummary(sci.loadLabel(getPackageManager()));
+ if(sci!=null)
+ spellChecker.setSummary(sci.loadLabel(getPackageManager()));
} else {
spellChecker.setSummary(R.string.switch_off_text);
}