Skip to content

Commit

Permalink
input: Fix workaround for broken hardware keyboard support
Browse files Browse the repository at this point in the history
Using a wrong reference to mHardKeyboardAvailable caused device config
to never report physical keyboards.

Change-Id: I9b64e2d89512436c17fa8929464e2b727fba1cf3
  • Loading branch information
aleho authored and imnuts committed Nov 21, 2012
1 parent 57b013d commit 1eeae87
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6973,7 +6973,7 @@ boolean computeScreenConfigurationLocked(Configuration config) {
// 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;
Expand Down

0 comments on commit 1eeae87

Please sign in to comment.