Roll Engine from 4463cf40fed9 to 5f0271a38988 + Fix test (#98479)

This commit is contained in:
Emmanuel Garcia
2022-02-15 13:11:36 -08:00
committed by GitHub
parent a1a305c9fa
commit 4ee22ed2bd
4 changed files with 9 additions and 22 deletions

View File

@@ -96,11 +96,6 @@ public class MainActivity extends FlutterActivity implements MethodChannel.Metho
return builder.toString();
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
@Override
public void configureFlutterEngine(FlutterEngine flutterEngine) {
DartExecutor executor = flutterEngine.getDartExecutor();
@@ -140,7 +135,7 @@ public class MainActivity extends FlutterActivity implements MethodChannel.Metho
public void synthesizeEvent(MethodCall methodCall) {
MotionEvent event = MotionEventCodec.decode((HashMap<String, Object>) methodCall.arguments());
getFlutterView().dispatchTouchEvent(event);
// TODO(egarciad): This can be cleaned up.
// TODO(egarciad): Remove invokeMethod since it is not necessary.
mMethodChannel.invokeMethod("onTouch", MotionEventCodec.encode(event));
}