some additional safety, so we show at least a working keyboard in case dictionary or native library loading fails

This commit is contained in:
Helium314 2025-06-01 17:03:16 +02:00
parent 07ea14ea16
commit f81f6a7f7d
3 changed files with 30 additions and 19 deletions

View file

@ -70,7 +70,12 @@ public class ProximityInfo {
return;
}
computeNearestNeighbors();
mNativeProximityInfo = createNativeProximityInfo(touchPositionCorrection);
try {
mNativeProximityInfo = createNativeProximityInfo(touchPositionCorrection);
} catch (Throwable e) {
Log.e(TAG, "could not create proximity info", e);
mNativeProximityInfo = 0;
}
}
private long mNativeProximityInfo;