Merge "Fix a behavior change in "Show software keyboard"." into nyc-dev

This commit is contained in:
Yohei Yukawa
2016-05-04 21:39:13 +00:00
committed by Android (Google) Code Review

View File

@@ -1536,8 +1536,8 @@ public class InputMethodService extends AbstractInputMethodService {
// mode at this point.
return false;
}
Configuration config = getResources().getConfiguration();
if (config.keyboard != Configuration.KEYBOARD_NOKEYS) {
if (!mSettingsObserver.shouldShowImeWithHardKeyboard() &&
getResources().getConfiguration().keyboard != Configuration.KEYBOARD_NOKEYS) {
// And if the device has a hard keyboard, even if it is
// currently hidden, don't show the input method implicitly.
// These kinds of devices don't need it that much.