From 04dd24d4baf7f78e7b47c9f91e82dfb44fd48190 Mon Sep 17 00:00:00 2001 From: Satoshi Kataoka Date: Fri, 18 Jan 2013 13:44:37 +0900 Subject: Ensure that the input method dialog is dismissed when changing the hardware keyboard state. Change-Id: I51882ecd2b1a12116f43afff7c23454164a6272b --- services/java/com/android/server/InputMethodManagerService.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'services/java/com/android/server/InputMethodManagerService.java') diff --git a/services/java/com/android/server/InputMethodManagerService.java b/services/java/com/android/server/InputMethodManagerService.java index 3aa04b3..b950d84 100644 --- a/services/java/com/android/server/InputMethodManagerService.java +++ b/services/java/com/android/server/InputMethodManagerService.java @@ -2553,6 +2553,9 @@ public class InputMethodManagerService extends IInputMethodManager.Stub public void onCheckedChanged( CompoundButton buttonView, boolean isChecked) { mWindowManagerService.setHardKeyboardEnabled(isChecked); + // Ensure that the input method dialog is dismissed when changing + // the hardware keyboard state. + hideInputMethodMenu(); } }); -- cgit v1.1