Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 427a7ba1 authored by Jean Chalard's avatar Jean Chalard
Browse files

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
parent 12b5c753
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);