diff options
-rw-r--r-- | services/core/java/com/android/server/wm/WindowManagerService.java | 7 |
1 files changed, 5 insertions, 2 deletions
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); + } } } |