Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57291df3 authored by guotao.deng's avatar guotao.deng Committed by Steve Kondik
Browse files

We should not change the time interval with two MotionEvent,

or someothers can not use it correct.

Change-Id: I6de2b39fe214e64479df1d411cb3e1c8af2c8894
parent e7d558a5
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -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();
            }
        }