From 8629784bbb31e5edace15dfe025317c708723ebd Mon Sep 17 00:00:00 2001 From: Yohei Yukawa Date: Fri, 10 Oct 2014 15:13:28 +0900 Subject: Update config when "Show input method" is changed This is a follow up CL for I2237ded850a0d4ab43ca441d0b7df1. Seems that we still need to update config settings every time when "Show input method" is changed. BUG: 17666032 Change-Id: I480aeaa038bef9c3c20e8f0b36110e92a35809db --- services/core/java/com/android/server/wm/WindowManagerService.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'services/core/java') diff --git a/services/core/java/com/android/server/wm/WindowManagerService.java b/services/core/java/com/android/server/wm/WindowManagerService.java index 8437d52..837672a 100644 --- a/services/core/java/com/android/server/wm/WindowManagerService.java +++ b/services/core/java/com/android/server/wm/WindowManagerService.java @@ -7226,11 +7226,14 @@ public class WindowManagerService extends IWindowManager.Stub } public void updateShowImeWithHardKeyboard() { - boolean showImeWithHardKeyboard = Settings.Secure.getIntForUser( + final boolean showImeWithHardKeyboard = Settings.Secure.getIntForUser( mContext.getContentResolver(), Settings.Secure.SHOW_IME_WITH_HARD_KEYBOARD, 0, mCurrentUserId) == 1; synchronized (mWindowMap) { - mShowImeWithHardKeyboard = showImeWithHardKeyboard; + if (mShowImeWithHardKeyboard != showImeWithHardKeyboard) { + mShowImeWithHardKeyboard = showImeWithHardKeyboard; + mH.sendEmptyMessage(H.SEND_NEW_CONFIGURATION); + } } } -- cgit v1.1