Skip to content
Snippets Groups Projects
Commit 87154c65 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Fix NPE

Bug: 4727778
Change-Id: I08f1204d5f77251c197dda7d2b332441f9f7123d
parent 416534d0
No related branches found
No related tags found
No related merge requests found
......@@ -186,7 +186,7 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha
public void onSizeChanged() {
final int width = mInputMethodService.getWindow().getWindow().getDecorView().getWidth();
if (width == 0)
if (width == 0 || mCurrentId == null)
return;
mKeyboardWidth = width;
// Set keyboard with new width.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment