am cbf77e9b: Merge change I875200fe into eclair

Merge commit 'cbf77e9bef0db68c55b60994d93674bf6fd1ca13' into eclair-mr2

* commit 'cbf77e9bef0db68c55b60994d93674bf6fd1ca13':
  Another fix for #2186897: Cannot unlock the device by swiping
This commit is contained in:
Dianne Hackborn
2009-10-14 07:37:38 -07:00
committed by Android Git Automerger

View File

@@ -721,11 +721,14 @@ public abstract class KeyInputQueue {
// virtual key area... but still
// propagate this to the previous
// data for comparisons.
int num = ms.mNextNumPointers;
if (num > InputDevice.MAX_POINTERS) {
num = InputDevice.MAX_POINTERS;
}
System.arraycopy(ms.mNextData, 0,
ms.mLastData, 0,
ms.mNextNumPointers
* MotionEvent.NUM_SAMPLE_DATA);
ms.mLastNumPointers = ms.mNextNumPointers;
num * MotionEvent.NUM_SAMPLE_DATA);
ms.mLastNumPointers = num;
}
ms.finish();