diff options
Diffstat (limited to 'src/com/android/settings/inputmethod/InputMethodPreference.java')
-rw-r--r-- | src/com/android/settings/inputmethod/InputMethodPreference.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/com/android/settings/inputmethod/InputMethodPreference.java b/src/com/android/settings/inputmethod/InputMethodPreference.java index 21057a6a5..f490fd2e4 100644 --- a/src/com/android/settings/inputmethod/InputMethodPreference.java +++ b/src/com/android/settings/inputmethod/InputMethodPreference.java @@ -21,6 +21,7 @@ import com.android.settings.SettingsPreferenceFragment; import android.app.AlertDialog; import android.app.Fragment; +import android.content.ActivityNotFoundException; import android.content.DialogInterface; import android.content.Intent; import android.content.res.Configuration; @@ -102,7 +103,13 @@ public class InputMethodPreference extends CheckBoxPreference new OnClickListener() { @Override public void onClick(View arg0) { - mFragment.startActivity(mSettingsIntent); + try { + mFragment.startActivity(mSettingsIntent); + } catch (ActivityNotFoundException e) { + Log.d(TAG, "IME's Settings Activity Not Found: " + e); + // If the IME's settings activity does not exist, we can just + // do nothing... + } } }); } |