Bug: 4727778
Change-Id: I08f1204d5f77251c197dda7d2b332441f9f7123d
main
Tadashi G. Takaoka 2011-06-21 02:31:33 +09:00
parent 416534d032
commit 87154c656e
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha
public void onSizeChanged() { public void onSizeChanged() {
final int width = mInputMethodService.getWindow().getWindow().getDecorView().getWidth(); final int width = mInputMethodService.getWindow().getWindow().getDecorView().getWidth();
if (width == 0) if (width == 0 || mCurrentId == null)
return; return;
mKeyboardWidth = width; mKeyboardWidth = width;
// Set keyboard with new width. // Set keyboard with new width.