am 540861c9: am 2dfd8d57: Merge "Update config when "Show input method" is changed" into lmp-dev

* commit '540861c925df9b3743251e5d219cd5fe790f9048':
  Update config when "Show input method" is changed
This commit is contained in:
Yohei Yukawa
2014-10-13 18:57:58 +00:00
committed by Android Git Automerger

View File

@@ -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);
}
}
}