commit | 427a7ba1048d81b6b4fdcf29072c7584f6c18b87 | [log] [tgz] |
---|---|---|
author | Jean Chalard <jchalard@google.com> | Mon Aug 29 19:21:23 2011 +0900 |
committer | Jean Chalard <jchalard@google.com> | Mon Aug 29 19:21:23 2011 +0900 |
tree | 4666293505b1fade57c4bfae60bcaa8e26173372 | |
parent | 12b5c75312ad90e3dc21db0b7e75def3651c3adb [diff] |
Fix a crash in settings if a hard keyboard is attached. For some reason the type of the options was wrong, but otherwise it seems to work. Bug: 5004175 Change-Id: I668b8bba1933aee6ad1243e446bd66c479bd6944
diff --git a/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java b/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java index 699a4a6..c80267b 100644 --- a/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java +++ b/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java
@@ -181,7 +181,7 @@ // Hard keyboard if (mHaveHardKeyboard) { for (int i = 0; i < sHardKeyboardKeys.length; ++i) { - InputMethodPreference chkPref = (InputMethodPreference) + CheckBoxPreference chkPref = (CheckBoxPreference) mHardKeyboardCategory.findPreference(sHardKeyboardKeys[i]); chkPref.setChecked( System.getInt(getContentResolver(), sSystemSettingNames[i], 1) > 0);