-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
flutter/engine
#17486Labels
engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-androidAndroid applications specificallyAndroid applications specifically
Milestone
Description
When trying to create a Flutter fragment with RenderMode.texture, I get a crash at launch of the flutter view.
From code inspection, I found this in FlutterView.java
private FlutterView(
@NonNull Context context,
@Nullable AttributeSet attrs,
@NonNull FlutterSurfaceView flutterSurfaceView) {
super(context, attrs);
this.flutterSurfaceView = flutterSurfaceView;
this.renderSurface = flutterSurfaceView;
init();
}
private FlutterView(
@NonNull Context context,
@Nullable AttributeSet attrs,
@NonNull FlutterTextureView flutterTextureView) {
super(context, attrs);
this.flutterTextureView = flutterTextureView;
this.renderSurface = flutterSurfaceView;
init();
}
In the second constructor, the second line should be this instead:
this.renderSurface = flutterTextureView;
Metadata
Metadata
Assignees
Labels
engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-androidAndroid applications specificallyAndroid applications specifically