mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Refactor to suppress null worning"
This commit is contained in:
commit
433be45fce
@ -119,11 +119,6 @@ public class ProximityInfo {
|
|||||||
sweetSpotCenterYs = new float[keyCount];
|
sweetSpotCenterYs = new float[keyCount];
|
||||||
sweetSpotRadii = new float[keyCount];
|
sweetSpotRadii = new float[keyCount];
|
||||||
calculateSweetSpotParams = true;
|
calculateSweetSpotParams = true;
|
||||||
} else {
|
|
||||||
sweetSpotCenterXs = sweetSpotCenterYs = sweetSpotRadii = null;
|
|
||||||
calculateSweetSpotParams = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (final Key key : keys) {
|
for (final Key key : keys) {
|
||||||
keyXCoordinates[i] = key.mX;
|
keyXCoordinates[i] = key.mX;
|
||||||
@ -150,6 +145,10 @@ public class ProximityInfo {
|
|||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
sweetSpotCenterXs = sweetSpotCenterYs = sweetSpotRadii = null;
|
||||||
|
calculateSweetSpotParams = false;
|
||||||
|
}
|
||||||
|
|
||||||
mNativeProximityInfo = setProximityInfoNative(MAX_PROXIMITY_CHARS_SIZE,
|
mNativeProximityInfo = setProximityInfoNative(MAX_PROXIMITY_CHARS_SIZE,
|
||||||
keyboardWidth, keyboardHeight, mGridWidth, mGridHeight, proximityCharsArray,
|
keyboardWidth, keyboardHeight, mGridWidth, mGridHeight, proximityCharsArray,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user