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

Commit 37067442 authored by satok's avatar satok
Browse files

Refactor to suppress null worning

Change-Id: I4b4dc6f86d659491d8b9a74ed120092eab964345
parent 907371b5
Loading
Loading
Loading
Loading
+26 −27
Original line number Diff line number Diff line
@@ -119,11 +119,6 @@ public class ProximityInfo {
            sweetSpotCenterYs = new float[keyCount];
            sweetSpotRadii = new float[keyCount];
            calculateSweetSpotParams = true;
        } else {
            sweetSpotCenterXs = sweetSpotCenterYs = sweetSpotRadii = null;
            calculateSweetSpotParams = false;
        }

            int i = 0;
            for (final Key key : keys) {
                keyXCoordinates[i] = key.mX;
@@ -150,6 +145,10 @@ public class ProximityInfo {
                }
                i++;
            }
        } else {
            sweetSpotCenterXs = sweetSpotCenterYs = sweetSpotRadii = null;
            calculateSweetSpotParams = false;
        }

        mNativeProximityInfo = setProximityInfoNative(MAX_PROXIMITY_CHARS_SIZE,
                keyboardWidth, keyboardHeight, mGridWidth, mGridHeight, proximityCharsArray,