mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix NPE
Bug: 4727778 Change-Id: I08f1204d5f77251c197dda7d2b332441f9f7123d
This commit is contained in:
parent
416534d032
commit
87154c656e
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user