diff --git a/services/java/com/android/server/wm/WindowManagerService.java b/services/java/com/android/server/wm/WindowManagerService.java index 574fc67869..953d0e891f 100755 --- a/services/java/com/android/server/wm/WindowManagerService.java +++ b/services/java/com/android/server/wm/WindowManagerService.java @@ -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;