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

Commit 52344a07 authored by Ken Wakasa's avatar Ken Wakasa
Browse files

Fix NPE with the unit test

Change-Id: I0836f8b7191287bcff65cdc8a8ce0ff7484e9f65
parent 2442e779
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ public class LatinKeyboard extends Keyboard {
        // The threshold is "key width" x 1.25
        mSpacebarLanguageSwitchThreshold = (getMostCommonKeyWidth() * 5) / 4;

        if (mSpaceKey != null) {
        if (mSpaceKey != null && mSpacePreviewIcon != null) {
            final int slidingIconWidth = Math.max(mSpaceKey.mWidth,
                    (int)(getMinWidth() * SPACEBAR_POPUP_MIN_RATIO));
            final int spaceKeyheight = mSpacePreviewIcon.getIntrinsicHeight();