Commit 756e7638 authored by justin's avatar justin Committed by GitHub

Merge pull request #572 from gws321/feature/base_flutter_1.12_upgrade

新的注册方式在onAttach时执行attachToView
parents 3d304739 034630d4
...@@ -606,6 +606,7 @@ public class XFlutterView extends FrameLayout { ...@@ -606,6 +606,7 @@ public class XFlutterView extends FrameLayout {
isFlutterUiDisplayed = flutterRenderer.isDisplayingFlutterUi(); isFlutterUiDisplayed = flutterRenderer.isDisplayingFlutterUi();
renderSurface.attachToRenderer(flutterRenderer); renderSurface.attachToRenderer(flutterRenderer);
flutterRenderer.addIsDisplayingFlutterUiListener(flutterUiDisplayListener); flutterRenderer.addIsDisplayingFlutterUiListener(flutterUiDisplayListener);
this.flutterEngine.getPlatformViewsController().attachToView(this);
...@@ -691,7 +692,7 @@ public class XFlutterView extends FrameLayout { ...@@ -691,7 +692,7 @@ public class XFlutterView extends FrameLayout {
// Disconnect the FlutterEngine's PlatformViewsController from the AccessibilityBridge. // Disconnect the FlutterEngine's PlatformViewsController from the AccessibilityBridge.
flutterEngine.getPlatformViewsController().detachAccessibiltyBridge(); flutterEngine.getPlatformViewsController().detachAccessibiltyBridge();
flutterEngine.getPlatformViewsController().detachFromView();
// Disconnect and clean up the AccessibilityBridge. // Disconnect and clean up the AccessibilityBridge.
accessibilityBridge.release(); accessibilityBridge.release();
accessibilityBridge = null; accessibilityBridge = null;
......
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