summaryrefslogtreecommitdiffstats
path: root/services/accessibility/java
diff options
context:
space:
mode:
authorguotao.deng <guotao.deng@ck-telecom.com>2015-10-28 09:58:14 +0800
committerSteve Kondik <shade@chemlab.org>2015-11-11 04:10:16 -0800
commit57291df3e5b27ebe97fe5f84da1cb66f05fedfb4 (patch)
treee5a80321562f1cd4ff3b4ea638577097ebc96f2b /services/accessibility/java
parente7d558a591e0386f98609336dbc59d80153e9c70 (diff)
downloadframeworks_base-57291df3e5b27ebe97fe5f84da1cb66f05fedfb4.zip
frameworks_base-57291df3e5b27ebe97fe5f84da1cb66f05fedfb4.tar.gz
frameworks_base-57291df3e5b27ebe97fe5f84da1cb66f05fedfb4.tar.bz2
We should not change the time interval with two MotionEvent,
or someothers can not use it correct. Change-Id: I6de2b39fe214e64479df1d411cb3e1c8af2c8894
Diffstat (limited to 'services/accessibility/java')
-rw-r--r--services/accessibility/java/com/android/server/accessibility/ScreenMagnifier.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/services/accessibility/java/com/android/server/accessibility/ScreenMagnifier.java b/services/accessibility/java/com/android/server/accessibility/ScreenMagnifier.java
index b4613d6..9be29c2 100644
--- a/services/accessibility/java/com/android/server/accessibility/ScreenMagnifier.java
+++ b/services/accessibility/java/com/android/server/accessibility/ScreenMagnifier.java
@@ -790,12 +790,7 @@ public final class ScreenMagnifier implements WindowManagerInternal.Magnificatio
while (mDelayedEventQueue != null) {
MotionEventInfo info = mDelayedEventQueue;
mDelayedEventQueue = info.mNext;
- final long offset = SystemClock.uptimeMillis() - info.mCachedTimeMillis;
- MotionEvent event = obtainEventWithOffsetTimeAndDownTime(info.mEvent, offset);
- MotionEvent rawEvent = obtainEventWithOffsetTimeAndDownTime(info.mRawEvent, offset);
- ScreenMagnifier.this.onMotionEvent(event, rawEvent, info.mPolicyFlags);
- event.recycle();
- rawEvent.recycle();
+ ScreenMagnifier.this.onMotionEvent(info.mEvent, info.mRawEvent, info.mPolicyFlags);
info.recycle();
}
}