Skip to content

Commit ad4e87d

Browse files
authored
Convert synthesized Android motion events to long and not to int. (flutter#6103)
1 parent f05b08b commit ad4e87d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ private void onTouch(MethodCall call, MethodChannel.Result result) {
254254
}
255255

256256
MotionEvent event = MotionEvent.obtain(
257-
downTime.intValue(),
258-
eventTime.intValue(),
257+
downTime.longValue(),
258+
eventTime.longValue(),
259259
action,
260260
pointerCount,
261261
pointerProperties,

0 commit comments

Comments
 (0)