Fix NPE
Follow up to I2b0ec091a11aa8a495794d633efecb6d8b818f42 bug: 14488351 Change-Id: Ic88adbd6775910f35338d798dc0d5493715708e4
This commit is contained in:
parent
920188c238
commit
0de529b4ca
1 changed files with 3 additions and 1 deletions
|
@ -147,7 +147,9 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions {
|
|||
|
||||
public void onHideWindow() {
|
||||
mIsAutoCorrectionActive = false;
|
||||
mKeyboardView.onHideWindow();
|
||||
if (mKeyboardView != null) {
|
||||
mKeyboardView.onHideWindow();
|
||||
}
|
||||
}
|
||||
|
||||
private void setKeyboard(final Keyboard keyboard) {
|
||||
|
|
Loading…
Reference in a new issue