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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user