mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am 2d67b03a
: am 1354910f
: Merge "Postpone gesture start detection on non-letter key" into jb-mr1-dev
* commit '2d67b03a68e388966b9aa43c65a6ccc9ed4147af': Postpone gesture start detection on non-letter key
This commit is contained in:
commit
1af903f31c
@ -560,10 +560,13 @@ public class PointerTracker implements PointerTrackerQueue.Element {
|
||||
return (sPointerTrackerQueue == null) ? 1 : sPointerTrackerQueue.size();
|
||||
}
|
||||
|
||||
private void mayStartBatchInput() {
|
||||
private void mayStartBatchInput(final Key key) {
|
||||
if (sInGesture || !mGestureStrokeWithPreviewPoints.isStartOfAGesture()) {
|
||||
return;
|
||||
}
|
||||
if (key == null || !Character.isLetter(key.mCode)) {
|
||||
return;
|
||||
}
|
||||
if (DEBUG_LISTENER) {
|
||||
Log.d(TAG, "onStartBatchInput");
|
||||
}
|
||||
@ -742,7 +745,7 @@ public class PointerTracker implements PointerTrackerQueue.Element {
|
||||
final int gestureTime = (int)(eventTime - sGestureFirstDownTime);
|
||||
if (mIsDetectingGesture) {
|
||||
mGestureStrokeWithPreviewPoints.addPoint(x, y, gestureTime, isMajorEvent);
|
||||
mayStartBatchInput();
|
||||
mayStartBatchInput(key);
|
||||
if (sInGesture && key != null) {
|
||||
updateBatchInput(eventTime);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user