Unverified Commit fd44d0bb authored by amirh's avatar amirh Committed by GitHub

Update the android_views integration test to the new Android views API. (#20999)

This updates the test to match the engine API change introduced in:
https://github.com/flutter/engine/pull/6081

This also rolls the engine, the roll includes only the relevant engine commit:
```
091492601 Allow passing extra creation parameters for embedded Android views. (#6081)
```
parent ac8d442a
78e74d4d18160e745d3d0cc4336259800adabc92
091492601479a6a234c7c4c91b19b7080fabfb6b
......@@ -11,15 +11,16 @@ import io.flutter.plugin.common.MethodChannel;
import io.flutter.plugin.platform.PlatformView;
import io.flutter.plugin.platform.PlatformViewFactory;
public class SimpleViewFactory implements PlatformViewFactory {
public class SimpleViewFactory extends PlatformViewFactory {
final BinaryMessenger messenger;
public SimpleViewFactory(BinaryMessenger messenger) {
super(null);
this.messenger = messenger;
}
@Override
public PlatformView create(Context context, int id) {
public PlatformView create(Context context, int id, Object params) {
MethodChannel methodChannel = new MethodChannel(messenger, "simple_view/" + id);
return new SimplePlatformView(context, methodChannel);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment