mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Fix NPE in KeyDetector"
This commit is contained in:
commit
0d69557f14
@ -86,6 +86,9 @@ public class KeyDetector {
|
||||
* @return the key that the touch point hits.
|
||||
*/
|
||||
public Key detectHitKey(final int x, final int y) {
|
||||
if (mKeyboard == null) {
|
||||
return null;
|
||||
}
|
||||
final int touchX = getTouchX(x);
|
||||
final int touchY = getTouchY(y);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user