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
This commit is contained in:
Jean Chalard
2011-08-29 19:21:23 +09:00
parent 12b5c75312
commit 427a7ba104

View File

@@ -181,7 +181,7 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment
// 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);