am 4b6b11b5: am 8a26e853: Fix an issue of adding extra character.

Merge commit '4b6b11b5064a3b8b604a6441e7a037b0443ec6ed'

* commit '4b6b11b5064a3b8b604a6441e7a037b0443ec6ed':
  Fix an issue of adding extra character.
main
Ken Wakasa 2010-10-16 09:13:17 -07:00 committed by Android Git Automerger
commit 4e2feed325
1 changed files with 6 additions and 1 deletions

View File

@ -210,7 +210,10 @@ public class LatinKeyboardBaseView extends View implements PointerTracker.UIProx
private OnKeyboardActionListener mKeyboardActionListener;
private final ArrayList<PointerTracker> mPointerTrackers = new ArrayList<PointerTracker>();
// TODO: Let the PointerTracker class manage this pointer queue
private final PointerQueue mPointerQueue = new PointerQueue();
private final boolean mHasDistinctMultitouch;
private int mOldPointerCount = 1;
@ -1036,8 +1039,10 @@ public class LatinKeyboardBaseView extends View implements PointerTracker.UIProx
boolean result = onLongPress(popupKey);
if (result) {
dismissKeyPreview();
tracker.setAlreadyProcessed();
mMiniKeyboardTrackerId = tracker.mPointerId;
// Mark this tracker "already processed" and remove it from the pointer queue
tracker.setAlreadyProcessed();
mPointerQueue.remove(tracker);
}
return result;
}