Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit bcb12d7

Browse files
author
Kaushik Iska
committed
fix memory leak
1 parent 62f5424 commit bcb12d7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

shell/platform/android/io/flutter/embedding/android/AndroidTouchProcessor.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ private void addPointerForIndex(
176176
return;
177177
}
178178

179-
MotionEventTracker.MotionEventId motionEventId = motionEventTracker.track(event);
179+
// TODO (kaushikiska) : pass this in when we have a way to evict framework only events.
180+
// MotionEventTracker.MotionEventId motionEventId = motionEventTracker.track(event);
180181

181182
int pointerKind = getPointerDeviceTypeForToolType(event.getToolType(pointerIndex));
182183

@@ -187,7 +188,7 @@ private void addPointerForIndex(
187188

188189
long timeStamp = event.getEventTime() * 1000; // Convert from milliseconds to microseconds.
189190

190-
packet.putLong(motionEventId.getId());
191+
packet.putLong(0);
191192
packet.putLong(timeStamp); // time_stamp
192193
packet.putLong(pointerChange); // change
193194
packet.putLong(pointerKind); // kind

0 commit comments

Comments
 (0)