Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 87154c65 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Fix NPE

Bug: 4727778
Change-Id: I08f1204d5f77251c197dda7d2b332441f9f7123d
parent 416534d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.