mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-20 08:00:54 +00:00
some additional safety, so we show at least a working keyboard in case dictionary or native library loading fails
This commit is contained in:
parent
07ea14ea16
commit
f81f6a7f7d
3 changed files with 30 additions and 19 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue