diff options
author | satok <satok@google.com> | 2011-07-25 14:56:46 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-07-25 14:56:46 -0700 |
commit | b55738841b2a9e53bb6873bd4d5fb133f8dc099c (patch) | |
tree | 3295ef04d6a51faa61f795487523a4c1dfd0527d /src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java | |
parent | cd8e5246f1d538384dae87b8d2867ba3e44a6981 (diff) | |
parent | c0b569c317fad96abbf0ea23d07eb6d19f634ccf (diff) | |
download | packages_apps_settings-b55738841b2a9e53bb6873bd4d5fb133f8dc099c.zip packages_apps_settings-b55738841b2a9e53bb6873bd4d5fb133f8dc099c.tar.gz packages_apps_settings-b55738841b2a9e53bb6873bd4d5fb133f8dc099c.tar.bz2 |
Merge "[step6] Apply api and fix crush in spell checker settings."
Diffstat (limited to 'src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java')
-rw-r--r-- | src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java b/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java index d0ff2a0..699a4a6 100644 --- a/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java +++ b/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java @@ -116,8 +116,11 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment final Intent intent = new Intent(Intent.ACTION_MAIN); intent.setClass(getActivity(), SpellCheckersSettingsActivity.class); - ((SpellCheckersPreference)findPreference("spellcheckers_settings")).setFragmentIntent( - this, intent); + final SpellCheckersPreference scp = ((SpellCheckersPreference)findPreference( + "spellcheckers_settings")); + if (scp != null) { + scp.setFragmentIntent(this, intent); + } } private void updateInputMethodSelectorSummary(int value) { |