am 28772899: Merge "Don\'t cancel gesture typing while more keys keyboard is shown"

* commit '28772899d2fd0f452d1beca79c03123eaee53c0f':
  Don't cancel gesture typing while more keys keyboard is shown
main
Tadashi G. Takaoka 2013-01-09 00:28:01 -08:00 committed by Android Git Automerger
commit 473f8ab4a7
1 changed files with 5 additions and 0 deletions

View File

@ -791,6 +791,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
private void cancelBatchInput() {
sPointerTrackerQueue.cancelAllPointerTracker();
mIsDetectingGesture = false;
if (!sInGesture) {
return;
}
@ -918,6 +919,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
if (mIsDetectingGesture) {
final boolean onValidArea = mGestureStrokeWithPreviewPoints.addPointOnKeyboard(
x, y, gestureTime, isMajorEvent);
// If the move event goes out from valid batch input area, cancel batch input.
if (!onValidArea) {
cancelBatchInput();
return;
@ -1196,6 +1198,9 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
@Override
public void cancelTracking() {
if (isShowingMoreKeysPanel()) {
return;
}
mIsTrackingCanceled = true;
}