Merge "Don't cancel gesture typing while more keys keyboard is shown"
commit
28772899d2
|
@ -791,6 +791,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
|
||||||
|
|
||||||
private void cancelBatchInput() {
|
private void cancelBatchInput() {
|
||||||
sPointerTrackerQueue.cancelAllPointerTracker();
|
sPointerTrackerQueue.cancelAllPointerTracker();
|
||||||
|
mIsDetectingGesture = false;
|
||||||
if (!sInGesture) {
|
if (!sInGesture) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -918,6 +919,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
|
||||||
if (mIsDetectingGesture) {
|
if (mIsDetectingGesture) {
|
||||||
final boolean onValidArea = mGestureStrokeWithPreviewPoints.addPointOnKeyboard(
|
final boolean onValidArea = mGestureStrokeWithPreviewPoints.addPointOnKeyboard(
|
||||||
x, y, gestureTime, isMajorEvent);
|
x, y, gestureTime, isMajorEvent);
|
||||||
|
// If the move event goes out from valid batch input area, cancel batch input.
|
||||||
if (!onValidArea) {
|
if (!onValidArea) {
|
||||||
cancelBatchInput();
|
cancelBatchInput();
|
||||||
return;
|
return;
|
||||||
|
@ -1196,6 +1198,9 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void cancelTracking() {
|
public void cancelTracking() {
|
||||||
|
if (isShowingMoreKeysPanel()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
mIsTrackingCanceled = true;
|
mIsTrackingCanceled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue