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);