summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2010-06-10 14:09:50 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-06-10 14:09:50 -0700
commit8f2ca788f369892370477212cf9e7a67721a8c16 (patch)
tree4111ae09406799e0a0c20727a29825bebbf70dc3
parenta2c6d5bf308181c019ade0aac6d25fe33dc3d76c (diff)
parent5cd88cfd239bc61a4327e2a13747b4590890d838 (diff)
downloadbase-8f2ca788f369892370477212cf9e7a67721a8c16.tar.gz
Merge "Fix bug 2757693 - Multi-touch coordinates can jump when a finger goes down." into froyo
-rw-r--r--services/java/com/android/server/InputDevice.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/java/com/android/server/InputDevice.java b/services/java/com/android/server/InputDevice.java
index 07a74da8b4f0..414b69fabdc8 100644
--- a/services/java/com/android/server/InputDevice.java
+++ b/services/java/com/android/server/InputDevice.java
@@ -671,6 +671,8 @@ public class InputDevice {
System.arraycopy(lastData, i*MotionEvent.NUM_SAMPLE_DATA,
lastData, (i+1)*MotionEvent.NUM_SAMPLE_DATA,
(lastNumPointers-i)*MotionEvent.NUM_SAMPLE_DATA);
+ System.arraycopy(next2Last, i, next2Last,
+ i+1, lastNumPointers-i);
break;
}
i++;