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

Commit b205431f authored by Alexander Hofbauer's avatar Alexander Hofbauer Committed by Brian Beloshapka
Browse files

input: Fix workaround for broken hardware keyboard support

Using a wrong reference to mHardKeyboardAvailable caused device config
to never report physical keyboards.

Change-Id: I9b64e2d89512436c17fa8929464e2b727fba1cf3
parent 1abc2dd1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6992,7 +6992,7 @@ public class WindowManagerService extends IWindowManager.Stub
            // Determine whether a hard keyboard is available and enabled.
            boolean hardKeyboardAvailable = false;
            if (!mForceDisableHardwareKeyboard) {
                mHardKeyboardAvailable = config.keyboard != Configuration.KEYBOARD_NOKEYS;
                hardKeyboardAvailable = config.keyboard != Configuration.KEYBOARD_NOKEYS;
            }
            if (hardKeyboardAvailable != mHardKeyboardAvailable) {
                mHardKeyboardAvailable = hardKeyboardAvailable;