Follow up to I2b0ec091a11aa8a495794d633efecb6d8b818f42

bug: 14488351
Change-Id: Ic88adbd6775910f35338d798dc0d5493715708e4
main
Ken Wakasa 2014-05-03 00:33:41 +09:00 committed by The Android Automerger
parent 5b0342a20b
commit 0fac2d0492
1 changed files with 3 additions and 1 deletions

View File

@ -147,8 +147,10 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions {
public void onHideWindow() { public void onHideWindow() {
mIsAutoCorrectionActive = false; mIsAutoCorrectionActive = false;
if (mKeyboardView != null) {
mKeyboardView.onHideWindow(); mKeyboardView.onHideWindow();
} }
}
private void setKeyboard(final Keyboard keyboard) { private void setKeyboard(final Keyboard keyboard) {
// Make {@link MainKeyboardView} visible and hide {@link EmojiPalettesView}. // Make {@link MainKeyboardView} visible and hide {@link EmojiPalettesView}.