diff --git a/services/java/com/android/server/InputDevice.java b/services/java/com/android/server/InputDevice.java index 07a74da8b4f0b..414b69fabdc82 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++;